Replies: 2 comments
-
At some point, I tried to resolve this issue by adding a isChildNode bool to my Patcher struct, and set it true at the first Patch call. Does that work, or can the same Patcher make multiple passes over the root? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Simply check if vm.Program.Node is equal to visited node. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is there an easy way to understand if we are currently visiting the root node from inside a patcher?
I need to add a global condition to the entire statement. I guess i could patch the program itself afterwards, but was wondering if there is a more ergonomic way to do this.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions