From 4951f50b0fa42c26957edd4ccd65a4ce3127da28 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 c34764f12cd..8e18bb35f1c 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2608,7 +2608,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