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