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,11 +723,14 @@ namespace FlaxEditor.CustomEditors.Dedicated
} }
// Refresh anchors // Refresh anchors
if (Values != null && Values[0] != null)
{
GetAnchorEquality(out bool xEq, out bool yEq, ValuesTypes); GetAnchorEquality(out bool xEq, out bool yEq, ValuesTypes);
if (xEq != _cachedXEq || yEq != _cachedYEq) if (xEq != _cachedXEq || yEq != _cachedYEq)
{ {
RebuildLayout(); RebuildLayout();
} }
}
base.Refresh(); base.Refresh();
} }