Fix crash when control reference gets invalid in Editor

This commit is contained in:
Wojtek Figat
2025-10-21 15:54:37 +02:00
parent a2d91d989d
commit 99c26ff9af

View File

@@ -299,6 +299,8 @@ namespace FlaxEngine
private void OnControlLocationChanged(Control control)
{
if (control == null || !this)
return;
_blockEvents = true;
LocalPosition = new Vector3(control.Location, LocalPosition.Z);
_blockEvents = false;