You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
When you check where a global variable is used in your project, by clicking on the variable and looking at the Variable Uses list, you won't see any variable use from the free text area part of the Display Dialogue Event.
To Reproduce:
Create a global variable foo.
Add a Display Dialogue Event to an On Init part of the Scene 1 scene.
Put this text in the Display Dialog Event: foo = $foo.
Click on global variable foo in the VARIABLES section of Navigator.
Observe the Editor Sidebar.
Observed behavior:
Expected behavior:
Platform (please complete the following information):
OS: macOS 14.6.1 (23G93)
App version 4.1.3
The text was updated successfully, but these errors were encountered:
At first I wasn't able to reproduce this issue but it turns out this happens for "Variable 0" only, renaming any other variable to Foo and using it in dialogue worked as expected with uses being shown.
It ended up being a single character code change to fix but rather than just doing that I've extracted the code that was determining if variables were used in text/expressions into something more testable and have written a number of test cases to make it easier to spot if this issue ever comes back. 2386497
Describe the bug:
When you check where a global variable is used in your project, by clicking on the variable and looking at the Variable Uses list, you won't see any variable use from the free text area part of the Display Dialogue Event.
To Reproduce:
foo
.Scene 1
scene.foo = $foo
.foo
in theVARIABLES
section of Navigator.Observed behavior:
Expected behavior:
Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: