Cleanup: Avoid state creation in simulation input evaluation #107795

Closed
Hans Goudey wants to merge 1 commits from HooglyBoogly:cleanup-sim-input into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Hans Goudey d0c1e6df08 Cleanup: Avoid state creation for first simulation input node evaluation
On an evaluation of the simulation input node when there is no previous
state, the node's inputs are evaluated and passed directly to the
outputs. Currently this a bit confusing, since they are first converted
into a simulation state and _then_ passed to the outputs. This commit
simplifies the node to avoid creating a simulation state, just moving
the values directly instead. The inputs are also set to unused when
there is a previous state too.
2023-05-09 13:53:16 -04:00