|
@@ -128,7 +128,10 @@ namespace bs
|
|
|
if (!mRefreshInProgress)
|
|
if (!mRefreshInProgress)
|
|
|
ScriptObject::_onManagedInstanceDeleted();
|
|
ScriptObject::_onManagedInstanceDeleted();
|
|
|
else
|
|
else
|
|
|
- mEditorWidget->clearManagedInstance(false);
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ if(mEditorWidget)
|
|
|
|
|
+ mEditorWidget->clearManagedInstance(false);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
ScriptObjectBackup ScriptEditorWindow::beginRefresh()
|
|
ScriptObjectBackup ScriptEditorWindow::beginRefresh()
|