fix mesh visibility (#2333)

This commit is contained in:
shun-iwasawa 2018-10-18 14:34:20 +09:00 committed by masafumi-inoue
parent 0568f423b5
commit f20cae58d5

View file

@ -997,9 +997,13 @@ void PlasticTool::onDeactivate() {
assert(ret);
Viewer *viewer = getViewer();
if (viewer)
if (viewer) {
viewer->visualSettings().m_plasticVisualSettings = PlasticVisualSettings();
// Only the mesh visibility is not reset in order to enable to keep the mesh
// hidden while using other tools
viewer->visualSettings().m_plasticVisualSettings.m_drawMeshesWireframe =
m_pvs.m_drawMeshesWireframe;
}
m_sd = PlasticSkeletonDeformationP();
}