diff options
author | George Marques <george@gmarqu.es> | 2020-08-23 11:04:52 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-23 11:04:52 -0300 |
commit | 58f5c2bab6f03e0c887447532832b18ac76ad250 (patch) | |
tree | f07525cca8e4d3f261c6e16aaf09ea2a88930af5 | |
parent | 2ba96f0dd9ed1cc218b464b0964138c51591dded (diff) | |
parent | a8c01df64768e5a010fccf97570c94fc31227dc5 (diff) |
Merge pull request #41238 from MarianoGnu/gdscript-export-resource
Fix GdScript Analyzier not detecting Resource subclass correctly
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 7b07cce8bd..3253c8e945 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -540,6 +540,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); |