File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ internal void PreventEditorClickthrough(Rect r)
6262#if DUMMY
6363 return ;
6464#else
65- if ( lockName == null )
65+ if ( lockName == null || EditorLogic . fetch == null )
6666 return ;
6767 //Log.Info("ClickThruBlocker: PreventEditorClickthrough");
6868 bool mouseOverWindow = MouseIsOverWindow ( r ) ;
@@ -129,7 +129,7 @@ internal void OnDestroy()
129129 else
130130 InputLockManager . RemoveControlLock ( lockName ) ;
131131 }
132- if ( weLockedEditorInputs )
132+ if ( EditorLogic . fetch != null && weLockedEditorInputs )
133133 {
134134 //EditorLogic.fetch.Unlock(lockName);
135135 weLockedEditorInputs = false ;
@@ -475,7 +475,7 @@ private void DoGuiCounter()
475475 {
476476 //Log.Info("lastonGuiCnt: " + lastonGuiCnt + "lastLockCycle: " + win.lastLockCycle);
477477 {
478- if ( win . weLockedEditorInputs )
478+ if ( if ( EditorLogic . fetch != null && win . weLockedEditorInputs )
479479 {
480480 EditorLogic . fetch . Unlock ( win . lockName ) ;
481481 win. weLockedEditorInputs = false ;
@@ -493,4 +493,4 @@ private void DoGuiCounter()
493493 }
494494 }
495495#endif
496- }
496+ }
You can’t perform that action at this time.
0 commit comments