Merge branch 'fix-uieditor-null' of https://github.com/Tryibion/FlaxEngine into Tryibion-fix-uieditor-null

This commit is contained in:
Wojtek Figat
2024-12-16 22:54:43 +01:00

View File

@@ -723,10 +723,13 @@ namespace FlaxEditor.CustomEditors.Dedicated
}
// Refresh anchors
GetAnchorEquality(out bool xEq, out bool yEq, ValuesTypes);
if (xEq != _cachedXEq || yEq != _cachedYEq)
if (Values != null && Values[0] != null)
{
RebuildLayout();
GetAnchorEquality(out bool xEq, out bool yEq, ValuesTypes);
if (xEq != _cachedXEq || yEq != _cachedYEq)
{
RebuildLayout();
}
}
base.Refresh();