From d84a303df4f2264ae04197974cdab40b7d5d359b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Tue, 29 Dec 2020 13:14:39 +0100 Subject: [PATCH] Fix instantiation of resource as property value (cherry picked from commit d2d29c42f280d38511aed673ef9c90ad5492bb30) --- editor/editor_properties.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 53b87e5a6fa..476e7a49c75 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2350,10 +2350,12 @@ void EditorPropertyResource::_menu_option(int p_which) { } Object *obj = NULL; + RES res_temp; if (ScriptServer::is_global_class(intype)) { obj = ClassDB::instance(ScriptServer::get_global_class_native_base(intype)); if (obj) { + res_temp = obj; Ref