From 9dc6b1228572ab1ae2ea476e9f359c3d04331da3 Mon Sep 17 00:00:00 2001 From: Rodney Date: Oct 18 2019 04:13:47 +0000 Subject: Merge pull request #2805 from martinvanzijl/issue-2180-pump-tool-tablet-issue Fix for pump tool using Wacom tablet (#2180) --- diff --git a/toonz/sources/tnztools/vectorselectiontool.cpp b/toonz/sources/tnztools/vectorselectiontool.cpp index d4d330c..a3413fb 100644 --- a/toonz/sources/tnztools/vectorselectiontool.cpp +++ b/toonz/sources/tnztools/vectorselectiontool.cpp @@ -586,6 +586,13 @@ void DragSelectionTool::VectorDeformTool::applyTransform(FourPoints bbox) { VectorFreeDeformer *freeDeformer = static_cast(tool->getFreeDeformer()); + + const bool stayedTheSame = + bbox.getP00() == freeDeformer->getPoint(0) && + bbox.getP10() == freeDeformer->getPoint(1) && + bbox.getP11() == freeDeformer->getPoint(2) && + bbox.getP01() == freeDeformer->getPoint(3); + freeDeformer->setPoints(bbox.getP00(), bbox.getP10(), bbox.getP11(), bbox.getP01()); freeDeformer->setComputeRegion(!m_isDragging); @@ -601,7 +608,7 @@ void DragSelectionTool::VectorDeformTool::applyTransform(FourPoints bbox) { if (!m_isDragging) tool->notifyImageChanged(); - tool->m_deformValues.m_isSelectionModified = true; + if (!stayedTheSame) tool->m_deformValues.m_isSelectionModified = true; if (!m_isDragging && (tool->isLevelType() || tool->isSelectedFramesType())) transformWholeLevel();