Fix bone color update

master
Jeremy HU 2022-12-09 22:18:34 +11:00
parent ffe6bce809
commit b906409ab9
3 changed files with 4 additions and 0 deletions

View File

@ -3095,6 +3095,7 @@ void Document::boneReady()
}
m_resultBodyBonePreviewMesh = m_boneGenerator->takeBodyPreviewMesh();
emit resultBodyBonePreviewMeshChanged();
// TODO:

View File

@ -226,6 +226,7 @@ signals:
void resultMeshChanged();
void resultComponentPreviewMeshesChanged();
void resultBonePreviewMeshesChanged();
void resultBodyBonePreviewMeshChanged();
void turnaroundChanged();
void editModeChanged();
void resultTextureChanged();

View File

@ -202,6 +202,7 @@ DocumentWindow::DocumentWindow()
m_isLastMeshGenerationSucceed = m_document->isMeshGenerationSucceed();
updateInprogressIndicator();
});
connect(m_document, &Document::resultBodyBonePreviewMeshChanged, this, &DocumentWindow::updateInprogressIndicator);
connect(m_document, &Document::resultComponentPreviewMeshesChanged, this, &DocumentWindow::generateComponentPreviewImages);
connect(m_document, &Document::textureChanged, this, &DocumentWindow::generateComponentPreviewImages);
connect(m_document, &Document::postProcessing, this, &DocumentWindow::updateInprogressIndicator);
@ -638,6 +639,7 @@ DocumentWindow::DocumentWindow()
connect(m_document, &Document::rigChanged, m_document, &Document::generateBone);
connect(m_document, &Document::postProcessedResultChanged, m_document, &Document::generateBone);
connect(m_document, &Document::resultTextureChanged, this, &DocumentWindow::updateRenderModel);
connect(m_document, &Document::resultBodyBonePreviewMeshChanged, this, &DocumentWindow::updateRenderModel);
connect(m_document, &Document::resultMeshChanged, this, &DocumentWindow::updateRenderModel);
connect(m_document, &Document::resultMeshChanged, this, &DocumentWindow::updateRenderWireframe);