]> git.sesse.net Git - nageru-docs/commitdiff
Document enable_if().
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 19 Jul 2019 21:48:45 +0000 (23:48 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 19 Jul 2019 21:48:45 +0000 (23:48 +0200)
theme.rst

index 6fa95fdd1b23a926c11833119b1131bebe9a79bd..3fa5873587a0a665c8ea0061283983eb452fa3f5 100644 (file)
--- a/theme.rst
+++ b/theme.rst
@@ -155,6 +155,8 @@ scaler before mixing; *ResampleEffect* provides one::
   input1:display(1)
   local input1_scaled = ... -- Similarly here and the rest.
 
+  input1_scaled:enable_if(some_variable)  -- Convenience form for enable() or disable() depending on some_variable.
+
   -- The rest is unchanged.
 
 Clearly, there are four options here; both inputs could be unscaled,