From 0cd562c5286cb9d6c7af11a30cdf4d3163ea4652 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sun, 8 Jan 2023 16:04:55 -0600 Subject: [PATCH] Fix in visject cm sometimes not populating all options once search box is cleared. --- Source/Editor/Surface/ContextMenu/VisjectCM.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Editor/Surface/ContextMenu/VisjectCM.cs b/Source/Editor/Surface/ContextMenu/VisjectCM.cs index 5057e4445..f537c2714 100644 --- a/Source/Editor/Surface/ContextMenu/VisjectCM.cs +++ b/Source/Editor/Surface/ContextMenu/VisjectCM.cs @@ -397,6 +397,13 @@ namespace FlaxEditor.Surface.ContextMenu return; Profiler.BeginEvent("VisjectCM.OnSearchFilterChanged"); + + if (string.IsNullOrEmpty(_searchBox.Text)) + { + ResetView(); + Profiler.EndEvent(); + return; + } // Update groups LockChildrenRecursive();