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-12-02 16:24:23 +00:00
2018-11-20 11:15:02 +01:00
2018-11-22 19:31:34 +06:00
2018-09-12 09:52:22 +02:00
2018-10-09 09:53:17 +02:00
2018-09-12 09:52:22 +02:00
2018-11-20 08:47:21 +01:00
2018-11-08 11:30:59 -03:00
2018-09-12 09:52:22 +02:00
2018-10-26 17:25:57 +02:00
2018-10-26 17:25:57 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-15 14:45:54 +02:00
2018-01-05 01:22:23 +01:00
2018-09-12 09:52:22 +02:00
2018-10-04 18:54:20 +02:00
2018-11-19 14:03:13 -05:00
2018-11-19 14:03:13 -05:00
2018-01-05 01:22:23 +01:00
2018-10-06 16:20:41 -04:00
2018-09-12 09:52:22 +02:00
2018-10-02 13:40:17 +02:00
2018-01-05 01:22:23 +01:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-01-05 01:22:23 +01:00
2018-09-12 09:52:22 +02:00
2018-11-08 11:30:59 -03:00
2018-09-12 09:52:22 +02:00
2018-10-19 11:45:24 +02:00
2018-09-12 09:52:22 +02:00
2018-11-16 19:12:00 -03:00
2018-11-16 19:12:00 -03:00
2018-09-14 18:06:11 +02:00
2018-09-12 09:52:22 +02:00
2018-01-01 14:40:47 +01:00
2018-09-12 09:52:22 +02:00
2018-07-28 18:13:48 +02:00
2018-09-12 09:52:22 +02:00
2018-10-24 19:46:33 -05:00
2018-10-01 17:32:12 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-27 16:25:23 +02:00
2018-09-12 09:52:22 +02:00
2018-10-11 12:53:32 +02:00
2018-11-27 19:55:37 -03:00
2018-11-16 08:49:26 -03:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-10-25 11:38:06 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-11-13 10:50:07 +03:00
2018-01-05 01:22:23 +01:00
2018-11-08 11:30:59 -03:00
2018-09-12 09:52:22 +02:00
2018-01-05 01:22:23 +01: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-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-11-21 22:10:58 -03:00
2018-09-12 09:52:22 +02:00
2019-01-10 01:58:50 +01:00
2019-01-10 01:58:50 +01:00
2018-09-28 14:07:39 +02:00
2018-09-12 09:52:22 +02:00
2018-10-29 12:25:56 -03:00
2018-01-05 01:22:23 +01:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-01-20 15:26:58 +01:00
2018-03-22 00:17:18 -03:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-09-23 13:58:01 +02:00
2018-09-12 09:52:22 +02:00
2018-06-25 16:22:41 -03:00
2018-10-02 13:54:15 -03:00
2018-01-05 01:22:23 +01:00
2018-11-18 19:46:35 -02:00
2018-11-18 19:46:35 -02:00
2018-11-09 15:27:06 +07:00
2018-12-03 20:25:23 +00:00
2018-11-19 21:11:55 +01:00
2018-01-05 01:22:23 +01:00
2018-11-28 05:03:24 -05:00
2018-09-13 10:59:00 +02:00
2018-09-12 09:52:22 +02:00
2018-11-28 07:54:22 -08:00
2018-10-01 17:02:47 +02:00
2018-09-12 09:52:22 +02:00
2018-09-12 09:52:22 +02:00
2018-11-18 11:48:21 -03:00
2018-09-12 09:52:22 +02:00