diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-02-06 23:01:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 23:01:16 +0300 |
commit | de4369ca4b5516b69d78b5cf979af14fbe997f40 (patch) | |
tree | 7f5ee590eb405a010ddf08ad5005e29e354f9308 /modules/gdscript/gdscript_parser.cpp | |
parent | bcc3dff7f4564269b93ede164b0b4f24fbd8c7e5 (diff) | |
parent | 2b71ede9676af477e371a84baa150a861768e7eb (diff) | |
download | redot-engine-de4369ca4b5516b69d78b5cf979af14fbe997f40.tar.gz |
Merge pull request #72708 from KoBeWi/PackedMultilineStringArray
Fix @export_multiline for PackedStringArray
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 2ec7f77201..223a44127f 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3697,6 +3697,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; } } |