diff --git a/Source/Editor/Surface/Archetypes/Animation.StateMachine.cs b/Source/Editor/Surface/Archetypes/Animation.StateMachine.cs index 7facfc807..e66f38398 100644 --- a/Source/Editor/Surface/Archetypes/Animation.StateMachine.cs +++ b/Source/Editor/Surface/Archetypes/Animation.StateMachine.cs @@ -726,7 +726,7 @@ namespace FlaxEditor.Surface.Archetypes private void OnSurfaceMouseUp(ref Float2 mouse, MouseButton buttons, ref bool handled) { - if (handled) + if (handled || Surface.Context != Context) return; // Check click over the connection @@ -751,7 +751,7 @@ namespace FlaxEditor.Surface.Archetypes private void OnSurfaceMouseDoubleClick(ref Float2 mouse, MouseButton buttons, ref bool handled) { - if (handled) + if (handled || Surface.Context != Context) return; // Check double click over the connection