From 44cf3c22acb140cc2f19f1062c0a4c0a931fd27b 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 --- editor/editor_properties.cpp | 8 ++++++++ editor/inspector_dock.cpp | 28 +++++++++++++++++++++++++ editor/inspector_dock.h | 4 ++++ editor/scene_tree_dock.cpp | 40 ++++++++++++++++++++++++++++-------- 4 files changed, 71 insertions(+), 9 deletions(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index d145a1e820a..fd2fc1ab079 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -3603,7 +3603,10 @@ void EditorPropertyResource::_resource_selected(const Ref &p_resource, void EditorPropertyResource::_resource_changed(const Ref &p_resource) { // Make visual script the correct type. Ref