From cc851b29fc71c3e315d484b46ba5076b5d63c46b Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 2 Nov 2025 22:12:53 +0100 Subject: [PATCH] Fix animation state transition inputs when using other surface context --- Source/Editor/Surface/Archetypes/Animation.StateMachine.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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