fix: the annoying empty black scene overlay box shown even when nothing is selected

pull/260/head
Bamdad Bastani 2022-08-29 23:36:18 +04:30 committed by takashi.sakai
parent 5e6da2e158
commit bdeeabbbe1
1 changed files with 1 additions and 1 deletions

View File

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