Skip to content

Commit

Permalink
fix: the annoying empty black scene overlay box shown even when nothi…
Browse files Browse the repository at this point in the history
…ng is selected
  • Loading branch information
bamdad-b authored and mob-sakai committed Aug 30, 2022
1 parent 5e6da2e commit bdeeabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Editor/UIParticleEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static void Init()
#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
Expand Down

0 comments on commit bdeeabb

Please sign in to comment.