Fix for editor

This commit is contained in:
Wojtek Figat
2022-02-06 14:11:31 +01:00
parent 748d69a3cb
commit 9cfc638ce0
2 changed files with 7 additions and 1 deletions

View File

@@ -229,7 +229,13 @@ namespace FlaxEditor.CustomEditors
for (int i = 0; i < Count; i++)
{
if (!Equals(this[i], _defaultValue))
{
// Special case for String (null string is kind of equal to empty string from the user perspective)
if (this[i] == null && _defaultValue is string defaultValueStr && defaultValueStr.Length == 0)
continue;
return true;
}
}
}
return false;