Fix bug in ValueContainer.HasDifferentTypes causing incorrect editor setup

#2436
This commit is contained in:
2024-04-16 22:32:10 +02:00
parent 446c1edafc
commit 171fc276fb
@@ -79,7 +79,7 @@ namespace FlaxEditor.CustomEditors
var theFirstType = TypeUtils.GetObjectType(this[0]);
for (int i = 1; i < Count; i++)
{
if (theFirstType != TypeUtils.GetObjectType(this[1]))
if (theFirstType != TypeUtils.GetObjectType(this[i]))
return true;
}
return false;