summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-02-04 13:53:22 +0100
committerkobewi <kobewi4e@gmail.com>2023-02-04 17:06:58 +0100
commit2b71ede9676af477e371a84baa150a861768e7eb (patch)
tree6aa2e07e50eeb6ae0d3f72fe14e20e38c4ecbfeb /modules/gdscript
parent0b1d516f67a3b2b7dd158b923559f192ec103a85 (diff)
Fix @export_multiline for PackedStringArray
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_parser.cpp7
1 files changed, 7 insertions, 0 deletions
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
@@ -3685,6 +3685,13 @@ bool GDScriptParser::export_annotations(const AnnotationNode *p_annotation, Node
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;
}
}