1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00
Files
godot/core
Ignacio Etcheverry ea85ff0dc2 Fix properties being lost when reloading placeholder GDScript instance
During reloading in `GDScriptLanguage::reload_all_scripts` a placeholder instance that must remain so is replaced with a new placeholder instance. The state is then restored by calling `ScriptInstance::set` for each property. This does not work if the script is missing the properties due to build/parse failing.
The fix for such cases is to call `placeholder_set_fallback` instead of `set` on the script instance.

I took this chance to move the `build_failed` flag from `PlaceHolderScriptInstance` to `Script`. That improves the code a lot. I also renamed it to `placeholder_fallback_enabled` which is a much better name (`build_failed` could lead to misunderstandings).
2019-01-10 01:58:50 +01:00
..
2018-11-16 11:09:05 +01:00
2018-11-20 11:15:02 +01:00
2018-10-26 17:25:57 +02:00
2018-10-26 17:25:57 +02:00
2018-10-06 16:20:41 -04:00
2018-10-19 11:45:24 +02:00
2018-10-04 18:16:04 +02:00
2018-11-12 21:49:50 +01:00
2018-07-24 12:13:05 +02:00
2018-06-25 16:22:41 -03:00