virtualx-engine/modules/gdscript
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
..
doc_classes doc: Use HTTPS for docs.godotengine.org and point to latest branch 2018-11-05 08:46:27 +01:00
editor Fix types highlighting outside of function args and var declarations, issues 22029,21638 2018-10-13 17:52:25 +01:00
config.py SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
gdscript.cpp Fix properties being lost when reloading placeholder GDScript instance 2019-01-10 01:58:50 +01:00
gdscript.h Fix properties being lost when reloading placeholder GDScript instance 2019-01-10 01:58:50 +01:00
gdscript_compiler.cpp Fix many errors found by PVS-Studio 2018-11-28 05:03:24 -05:00
gdscript_compiler.h Revert "Fix crash on signal/resume to dangling target" 2018-11-24 23:46:13 +01:00
gdscript_editor.cpp Fix GDScript assuming awareness of whole ClassDB 2018-10-28 03:07:35 +01:00
gdscript_function.cpp Merge pull request #23959 from RandomShaper/fix-dangling-script-fix 2018-11-26 10:13:00 +01:00
gdscript_function.h Fix crash on signal/resume to dangling target 2018-11-25 13:16:45 +01:00
gdscript_functions.cpp Add new "push_*()" functions to GDScript 2018-10-31 15:40:19 -03:00
gdscript_functions.h Add new "push_*()" functions to GDScript 2018-10-31 15:40:19 -03:00
gdscript_parser.cpp Merge pull request #23740 from ttencate/unused_argument_22139 2018-11-23 01:07:22 +01:00
gdscript_parser.h Fix various Clang 7 warnings about unused stuff 2018-10-01 17:32:12 +02:00
gdscript_tokenizer.cpp GDScriptTokenizer: Fix token_names order 2018-10-14 23:34:53 +02:00
gdscript_tokenizer.h Rename slave keyword to puppet 2018-09-15 00:06:03 +02:00
register_types.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
register_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00