From d2d29c42f280d38511aed673ef9c90ad5492bb30 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 --- 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 972fd0723a9..9c27b50a9ab 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2546,10 +2546,12 @@ void EditorPropertyResource::_menu_option(int p_which) { } Object *obj = nullptr; + 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