From a8c01df64768e5a010fccf97570c94fc31227dc5 Mon Sep 17 00:00:00 2001 From: Mariano Suligoy Date: Thu, 13 Aug 2020 19:46:57 -0300 Subject: [PATCH] Fix GdScript Analyzier not detecting Resource subclass correctly --- modules/gdscript/gdscript_analyzer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 561cdbbda44..768697bd8b9 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -533,6 +533,7 @@ void GDScriptAnalyzer::resolve_class_interface(GDScriptParser::ClassNode *p_clas break; case GDScriptParser::DataType::NATIVE: if (ClassDB::is_parent_class(get_real_class_name(datatype.native_type), "Resource")) { + member.variable->export_info.hint = PROPERTY_HINT_RESOURCE_TYPE; member.variable->export_info.hint_string = get_real_class_name(datatype.native_type); } else { push_error(R"(Export type can only be built-in or a resource.)", member.variable);