From 3394de0b933a742c14718eaefcba48f986869c4d Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 13 Feb 2025 23:29:02 +0100 Subject: [PATCH] Fix grid in multi-blend node to draw behind the lines #3212 --- .../Editor/Surface/Archetypes/Animation.MultiBlend.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/Editor/Surface/Archetypes/Animation.MultiBlend.cs b/Source/Editor/Surface/Archetypes/Animation.MultiBlend.cs index 94e74528c..4c0fd9dda 100644 --- a/Source/Editor/Surface/Archetypes/Animation.MultiBlend.cs +++ b/Source/Editor/Surface/Archetypes/Animation.MultiBlend.cs @@ -1182,9 +1182,9 @@ namespace FlaxEditor.Surface.Archetypes } /// - public override void DrawEditorBackground(ref Rectangle rect) + public override void DrawEditorGrid(ref Rectangle rect) { - base.DrawEditorBackground(ref rect); + base.DrawEditorGrid(ref rect); // Draw triangulated multi blend space var style = Style.Current; @@ -1195,15 +1195,8 @@ namespace FlaxEditor.Surface.Archetypes else Render2D.FillTriangles(_triangles, style.TextBoxBackgroundSelected.AlphaMultiplied(0.6f)); Render2D.DrawTriangles(_triangles, style.Foreground); - } - - /// - public override void DrawEditorGrid(ref Rectangle rect) - { - base.DrawEditorGrid(ref rect); // Highlight selected blend point - var style = Style.Current; var selectedIndex = _selectedAnimation.SelectedIndex; if (selectedIndex != -1 && selectedIndex < _editor.BlendPoints.Count && (ContainsFocus || IsMouseOver)) {