Sam-Izdat / lsl-editor

Web-based editor for LegitSL
0 stars 0 forks source link

updating UI defaults in script can leave UI and script values out of sync #3

Open Sam-Izdat opened 6 days ago

Sam-Izdat commented 6 days ago

new default is received, but editor already has 'definitive' user value by that point, as a previous default was already set; this 'definitive' value is also not re-sent when the default is updated, so editor ends up with one value and sandbox with another

Sam-Izdat commented 6 days ago

All values should probably be reset on build. Even with auto-build this shouldn't be a performance issue. On the other hand, esp. with auto-build, they may be expected to persist.

Sam-Izdat commented 6 days ago

one possible solution is to send current value to sandbox whenever a new user variable is defined; the new default won't apply (until reload) but at least the values will stay in sync