godot/modules/mono
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 Update class documentation xml 2018-10-07 21:57:26 +08:00
editor Merge pull request #24091 from neikeq/ii 2018-11-30 21:39:13 +01:00
glue Fix crash due to ~CSharpInstance() being called on freed instance 2018-12-01 02:28:24 +01:00
mono_gd Merge pull request #24091 from neikeq/ii 2018-11-30 21:39:13 +01:00
utils C#: Improve tool script support and fix reloading issues 2018-11-30 20:43:06 +01:00
config.py Fix assertion fail when loading assembly on project export 2018-11-08 16:47:15 +01:00
csharp_script.cpp Fix properties being lost when reloading placeholder GDScript instance 2019-01-10 01:58:50 +01:00
csharp_script.h Fix properties being lost when reloading placeholder GDScript instance 2019-01-10 01:58:50 +01:00
godotsharp_defs.h Improve the C# API projects generation 2018-11-08 01:05:22 +01:00
godotsharp_dirs.cpp Mono: Editor and export template dependencies and fixes 2018-10-03 19:16:29 +02:00
godotsharp_dirs.h Mono: Editor and export template dependencies and fixes 2018-10-03 19:16:29 +02:00
mono_gc_handle.cpp
mono_gc_handle.h
mono_reg_utils.py
register_types.cpp
register_types.h
SCsub C#: Improve tool script support and fix reloading issues 2018-11-30 20:43:06 +01:00
signal_awaiter_utils.cpp C#: Improve tool script support and fix reloading issues 2018-11-30 20:43:06 +01:00
signal_awaiter_utils.h
tls_configure.py