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 Fix/workaround for issue #21667 2018-09-12 03:24:08 +02:00
mono_gc_handle.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
mono_reg_utils.py convert unicode mono root path to ascii string 2018-06-30 08:58:41 +08: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 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 Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
tls_configure.py Mono: Pending exceptions and cleanup 2018-07-04 03:08:29 +02:00