Don't create widgets when saving images from the command line.

This commit is contained in:
Leonardo Zide
2021-01-06 09:55:03 -08:00
parent 39af536301
commit 47661710db
10 changed files with 213 additions and 62 deletions
+3 -1
View File
@@ -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();
}