From 98ebbf8b9987a4f232e5da8f0ac7367371b3b199 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 16 Mar 2023 21:03:36 -0500 Subject: [PATCH] Fix double color change on animation state machine states --- .../Editor/Surface/Archetypes/Animation.StateMachine.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Editor/Surface/Archetypes/Animation.StateMachine.cs b/Source/Editor/Surface/Archetypes/Animation.StateMachine.cs index 334ed4742..3859f842f 100644 --- a/Source/Editor/Surface/Archetypes/Animation.StateMachine.cs +++ b/Source/Editor/Surface/Archetypes/Animation.StateMachine.cs @@ -357,10 +357,8 @@ namespace FlaxEditor.Surface.Archetypes BackgroundColor = style.BackgroundNormal; var dragAreaColor = BackgroundColor / 2.0f; - if (IsMouseOver) - BackgroundColor *= 1.2f; if (_textRectHovered) - BackgroundColor *= 1.2f; + BackgroundColor *= 1.5f; Render2D.FillRectangle(_textRect, BackgroundColor); Render2D.FillRectangle(_dragAreaRect, dragAreaColor); @@ -1192,10 +1190,8 @@ namespace FlaxEditor.Surface.Archetypes BackgroundColor = style.BackgroundNormal; var dragAreaColor = BackgroundColor / 2.0f; - if (IsMouseOver) - BackgroundColor *= 1.2f; if (_textRectHovered) - BackgroundColor *= 1.2f; + BackgroundColor *= 1.5f; Render2D.FillRectangle(_textRect, BackgroundColor); Render2D.FillRectangle(_dragAreaRect, dragAreaColor);