From eb5ca59f13822b58a0d4d758f3c9abb2bf1b5d1f Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Dec 26 2018 05:42:53 +0000 Subject: fix pressure lost (#2431) --- diff --git a/toonz/sources/toonz/sceneviewerevents.cpp b/toonz/sources/toonz/sceneviewerevents.cpp index c09fe0e..b314e53 100644 --- a/toonz/sources/toonz/sceneviewerevents.cpp +++ b/toonz/sources/toonz/sceneviewerevents.cpp @@ -653,6 +653,7 @@ void SceneViewer::onPress(const TMouseEvent &event) { m_compareSettings.m_compareY = ImagePainter::DefaultCompareValue; update(); m_tabletEvent = false; + m_tabletState = None; return; } else if (abs((height() - m_pos.y()) - height() * m_compareSettings.m_compareY) < 20) { @@ -661,6 +662,7 @@ void SceneViewer::onPress(const TMouseEvent &event) { m_compareSettings.m_compareX = ImagePainter::DefaultCompareValue; update(); m_tabletEvent = false; + m_tabletState = None; return; } else m_compareSettings.m_dragCompareX = m_compareSettings.m_dragCompareY = @@ -672,6 +674,7 @@ void SceneViewer::onPress(const TMouseEvent &event) { TTool *tool = TApp::instance()->getCurrentTool()->getTool(); if (!tool || !tool->isEnabled()) { m_tabletEvent = false; + m_tabletState = None; return; } tool->setViewer(this); @@ -679,6 +682,7 @@ void SceneViewer::onPress(const TMouseEvent &event) { tool = TApp::instance()->getCurrentTool()->getTool(); if (!tool || !tool->isEnabled()) { m_tabletEvent = false; + m_tabletState = None; return; } tool->setViewer(this);