From 3b7b860b189fc242231e4ea51ae486d6586f3cee Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Sun, 25 Oct 2020 22:32:32 +0100 Subject: [PATCH] Keep property values when extending script (cherry picked from commit 44cf3c22acb140cc2f19f1062c0a4c0a931fd27b) --- editor/editor_properties.cpp | 8 +++++++ editor/inspector_dock.cpp | 29 +++++++++++++++++++++++++ editor/inspector_dock.h | 4 ++++ editor/scene_tree_dock.cpp | 41 ++++++++++++++++++++++++------------ 4 files changed, 69 insertions(+), 13 deletions(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index c917b2b70..cef8d2cda 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -3058,7 +3058,10 @@ void EditorPropertyResource::_resource_selected(const RES &p_resource, bool p_ed void EditorPropertyResource::_resource_changed(const RES &p_resource) { // Make visual script the correct type. Ref