From cdeba9e5d1852abae0075b9e62e6073df2d9f711 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Fri, 29 Apr 2022 18:29:26 +0800 Subject: [PATCH] Fix incorrect usage for some export variables --- modules/gdscript/gdscript_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 5c643dc40..0365e99a5 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -4914,6 +4914,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) { if (autoexport && member.data_type.has_type) { if (member.data_type.kind == DataType::BUILTIN) { member._export.type = member.data_type.builtin_type; + member._export.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE; } else if (member.data_type.kind == DataType::NATIVE) { if (ClassDB::is_parent_class(member.data_type.native_type, "Resource")) { member._export.type = Variant::OBJECT;