From f20cae58d5b51a7bc2998360d4636fba89e1435b Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Oct 18 2018 05:34:20 +0000 Subject: fix mesh visibility (#2333) --- diff --git a/toonz/sources/tnztools/plastictool.cpp b/toonz/sources/tnztools/plastictool.cpp index 626073f..364bb17 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(); }