Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix mesh visibility (#2333)

shun-iwasawaf20cae58d5b5
diff --git a/toonz/sources/tnztools/plastictool.cpp b/toonz/sources/tnztools/plastictool.cpp
index 626073f90..364bb1703 100644
--- a/toonz/sources/tnztools/plastictool.cpp
+++ b/toonz/sources/tnztools/plastictool.cpp
@@ -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();
}