diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-14 14:51:48 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | 02f466980369f03c847c362eb2bc59ad440fc547 (patch) | |
| tree | 15ac608e5562bdfdfc8851a36d1ce190a273e001 | |
| parent | new windows bundling with fltk (diff) | |
| download | alive-02f466980369f03c847c362eb2bc59ad440fc547.tar.gz alive-02f466980369f03c847c362eb2bc59ad440fc547.zip | |
fix bug where symbol results became constant
| -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 |
