RATools
RATools copied to clipboard
[Bug] disable_when() appears to be optimized out when used in function partway up the call stack
I'm encountering a strange issue where a use of disable_when() does not get applied when I use it in one function but not another. Please refer to the following code:
I expect this to create a ResetNextIf + AndNext + PauseIf chain, but it doesn't do that, per this screenshot:
Bizarrely, though, when I move the function one level lower in the call stack, it does create the chain as expected:
I've attached a version of the script that demonstrates the behavior.