diff --git a/Source/Editor/Surface/Archetypes/Animation.cs b/Source/Editor/Surface/Archetypes/Animation.cs index 5743b2a84..40a3d2a63 100644 --- a/Source/Editor/Surface/Archetypes/Animation.cs +++ b/Source/Editor/Surface/Archetypes/Animation.cs @@ -85,11 +85,10 @@ namespace FlaxEditor.Surface.Archetypes { base.ConnectionTick(box); - if (_assetBox != null) - { - if (box.ID != _assetBox.ID) - return; - } + if (_assetBox == null) + return; + if (box.ID != _assetBox.ID) + return; _assetSelect.Visible = !box.HasAnyConnection; UpdateTitle();