mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Fix @export_multiline for PackedStringArray
This commit is contained in:
parent
0b1d516f67
commit
2b71ede967
3 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue