diff options
| -rw-r--r-- | alv/rtnode.moon | 7 |
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 |
