diff options
author | Hilderin <81109165+Hilderin@users.noreply.github.com> | 2024-08-23 13:57:51 -0400 |
---|---|---|
committer | Hilderin <81109165+Hilderin@users.noreply.github.com> | 2024-09-14 15:07:53 -0400 |
commit | 46edd6df5581098d8494f9b51a9791dcdabd0ee4 (patch) | |
tree | fabd5302e7f14921632926b6775b5b83a4e9f059 /modules/gdscript/gdscript.cpp | |
parent | 74de05a01c8716a42d4e3427f607d7bea76b35e5 (diff) | |
download | redot-engine-46edd6df5581098d8494f9b51a9791dcdabd0ee4.tar.gz |
Fix script properties reload from external editor
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 276a12f5de..4d56fcb846 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -880,6 +880,11 @@ Error GDScript::reload(bool p_keep_state) { if (can_run && p_keep_state) { _restore_old_static_data(); } + + if (p_keep_state) { + // Update the properties in the inspector. + update_exports(); + } #endif reloading = false; |