Fix editing array of tags in Editor that is null initially

#1451
This commit is contained in:
Wojtek Figat
2023-09-27 13:38:03 +02:00
parent 86c06297e8
commit 44292efa04

View File

@@ -674,9 +674,9 @@ namespace FlaxEditor.CustomEditors.Editors
}
set
{
if (Values[0] is Tag[])
if (Values[0] is Tag[] || Values.Type.Type == typeof(Tag[]))
SetValue(value);
if (Values[0] is List<Tag>)
else if (Values[0] is List<Tag> || Values.Type.Type == typeof(List<Tag>))
SetValue(new List<Tag>(value));
}
}