Fixed the annoying empty black scene overlay box shown even when nothing is selected.

pull/225/head
Bamdad Bastani 2022-08-29 23:36:18 +04:30
parent 9e2dbe7758
commit f8cf4aec44
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ namespace Coffee.UIExtensions
#endif
#if UNITY_2019_1_OR_NEWER
SceneView.duringSceneGui += _ => miSceneViewOverlayWindow.Invoke(null, sceneViewArgs);
SceneView.duringSceneGui += _ => { if (s_SerializedObject != null) miSceneViewOverlayWindow.Invoke(null, sceneViewArgs); };
#else
SceneView.onSceneGUIDelegate += _ =>
#endif