Fix multiple windows crash when preference change

master
Jeremy Hu 2019-06-12 21:03:38 +09:30
parent b714b84dd8
commit 629c02adbe
2 changed files with 3 additions and 2 deletions

View File

@ -1501,7 +1501,7 @@ void Document::meshReady()
delete m_meshGenerator;
m_meshGenerator = nullptr;
qDebug() << "MeshLoader generation done";
qDebug() << "Mesh generation done";
m_isPostProcessResultObsolete = true;
m_isRigObsolete = true;
@ -1558,7 +1558,7 @@ void Document::generateMesh()
return;
}
qDebug() << "MeshLoader generating..";
qDebug() << "Mesh generating..";
settleOrigin();

View File

@ -1118,6 +1118,7 @@ DocumentWindow::~DocumentWindow()
{
emit uninialized();
g_documentWindows.erase(this);
delete m_document;
}
void DocumentWindow::showEvent(QShowEvent *event)