Skip to content

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

C

fix pinch tool crash

shun_iwasawa091edd3f5591
diff --git a/toonz/sources/tnztools/pinchtool.cpp b/toonz/sources/tnztools/pinchtool.cpp
index 8504f4b0f..0feded88c 100644
--- a/toonz/sources/tnztools/pinchtool.cpp
+++ b/toonz/sources/tnztools/pinchtool.cpp
@@ -549,7 +549,8 @@ bool PinchTool::keyDown(int key,
TUINT32 flags,
const TPoint &pos)
{
- m_deformation->reset();
+ if (!m_active)
+ m_deformation->reset();
#if 0
char c = (char)key;