diff --git a/Source/Editor/Content/GUI/ContentView.cs b/Source/Editor/Content/GUI/ContentView.cs index ab31530f1..26d89aac0 100644 --- a/Source/Editor/Content/GUI/ContentView.cs +++ b/Source/Editor/Content/GUI/ContentView.cs @@ -603,6 +603,11 @@ namespace FlaxEditor.Content.GUI { Render2D.DrawText(style.FontSmall, IsSearching ? "No results" : "Empty", new Rectangle(Float2.Zero, Size), style.ForegroundDisabled, TextAlignment.Center, TextAlignment.Center); } + + if (_isRubberBandSpanning) + { + Render2D.DrawRectangle(_rubberBandRectangle, Color.White); + } } /// @@ -759,16 +764,6 @@ namespace FlaxEditor.Content.GUI return false; } - /// - public override void DrawSelf() - { - base.DrawSelf(); - if (_isRubberBandSpanning) - { - Render2D.DrawRectangle(_rubberBandRectangle, Color.White); - } - } - /// protected override void PerformLayoutBeforeChildren() {