aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-14 14:51:48 +0000
committers-ol <s-ol@users.noreply.github.com>2020-05-14 14:51:48 +0000
commitd403aea2b2815cb1638a0f1577730a3ffae0b205 (patch)
tree8282f06a1a295d676dbe2dc39c3aef600df91b87
parentnew windows bundling with fltk (diff)
downloadalive-d403aea2b2815cb1638a0f1577730a3ffae0b205.tar.gz
alive-d403aea2b2815cb1638a0f1577730a3ffae0b205.zip
fix bug where symbol results became constant
-rw-r--r--alv/rtnode.moon7
1 files changed, 5 insertions, 2 deletions
diff --git a/alv/rtnode.moon b/alv/rtnode.moon
index 23cffa5..0639e3e 100644
--- a/alv/rtnode.moon
+++ b/alv/rtnode.moon
@@ -38,8 +38,7 @@ class RTNode
-- the copy has the same @result and @side_inputs, but will not update
-- anything on \tick.
make_ref: =>
- with RTNode result: @result
- .side_inputs = @side_inputs
+ RTNode result: @result, side_inputs: @side_inputs
--- poll all IOStream instances that are effecting this (sub)tree.
-- should be called once per frame on the root, right before tick.
@@ -112,6 +111,10 @@ class RTNode
@op = params.op
@children = params.children or {}
+ if params.side_inputs
+ @side_inputs = params.side_inputs
+ return
+
@side_inputs, is_child = {}, {}
for child in *@children
for result, input in pairs child.side_inputs