Don't create widgets when saving images from the command line.
This commit is contained in:
+3
-1
@@ -152,7 +152,9 @@ void Project::SetActiveModel(int ModelIndex)
|
||||
mModels[ModelIdx]->UpdatePieceInfo(UpdatedModels);
|
||||
|
||||
mActiveModel = mModels[ModelIndex];
|
||||
if (!mIsPreview) {
|
||||
|
||||
if (!mIsPreview && gMainWindow)
|
||||
{
|
||||
gMainWindow->SetCurrentModelTab(mActiveModel);
|
||||
mActiveModel->UpdateInterface();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user