From 2b71ede9676af477e371a84baa150a861768e7eb Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 4 Feb 2023 13:53:22 +0100 Subject: Fix @export_multiline for PackedStringArray --- modules/gdscript/gdscript_parser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/gdscript') diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index ed2dce471f..5f65e608b3 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3684,6 +3684,13 @@ bool GDScriptParser::export_annotations(const AnnotationNode *p_annotation, Node } else if (export_type.builtin_type == Variant::DICTIONARY) { variable->export_info.type = Variant::DICTIONARY; + return true; + } else if (export_type.builtin_type == Variant::PACKED_STRING_ARRAY) { + String hint_prefix = itos(Variant::STRING) + "/" + itos(variable->export_info.hint); + variable->export_info.hint = PROPERTY_HINT_TYPE_STRING; + variable->export_info.hint_string = hint_prefix + ":" + variable->export_info.hint_string; + variable->export_info.type = Variant::PACKED_STRING_ARRAY; + return true; } } -- cgit v1.2.3