fix mesh visibility (#2333)
This commit is contained in:
parent
0568f423b5
commit
f20cae58d5
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue