Fix multiple windows crash when preference change
parent
b714b84dd8
commit
629c02adbe
|
@ -1501,7 +1501,7 @@ void Document::meshReady()
|
||||||
delete m_meshGenerator;
|
delete m_meshGenerator;
|
||||||
m_meshGenerator = nullptr;
|
m_meshGenerator = nullptr;
|
||||||
|
|
||||||
qDebug() << "MeshLoader generation done";
|
qDebug() << "Mesh generation done";
|
||||||
|
|
||||||
m_isPostProcessResultObsolete = true;
|
m_isPostProcessResultObsolete = true;
|
||||||
m_isRigObsolete = true;
|
m_isRigObsolete = true;
|
||||||
|
@ -1558,7 +1558,7 @@ void Document::generateMesh()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "MeshLoader generating..";
|
qDebug() << "Mesh generating..";
|
||||||
|
|
||||||
settleOrigin();
|
settleOrigin();
|
||||||
|
|
||||||
|
|
|
@ -1118,6 +1118,7 @@ DocumentWindow::~DocumentWindow()
|
||||||
{
|
{
|
||||||
emit uninialized();
|
emit uninialized();
|
||||||
g_documentWindows.erase(this);
|
g_documentWindows.erase(this);
|
||||||
|
delete m_document;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DocumentWindow::showEvent(QShowEvent *event)
|
void DocumentWindow::showEvent(QShowEvent *event)
|
||||||
|
|
Loading…
Reference in New Issue