Fix @export_multiline for PackedStringArray

This commit is contained in:
kobewi
2023-02-04 13:53:22 +01:00
parent 0b1d516f67
commit 2b71ede967
3 changed files with 9 additions and 2 deletions

View File

@@ -574,7 +574,7 @@ void EditorPropertyArray::setup(Variant::Type p_array_type, const String &p_hint
// The format of p_hint_string is:
// subType/subTypeHint:nextSubtype ... etc.
if (array_type == Variant::ARRAY && !p_hint_string.is_empty()) {
if (!p_hint_string.is_empty()) {
int hint_subtype_separator = p_hint_string.find(":");
if (hint_subtype_separator >= 0) {
String subtype_string = p_hint_string.substr(0, hint_subtype_separator);