OpenToonz - An open-source full-featured 2D animation creation software
C
Prioritize selecting pivot over bounding box
manongjohnd7c83c8b393f
diff --git a/toonz/sources/tnztools/selectiontool.cpp b/toonz/sources/tnztools/selectiontool.cppindex ef9ae18ca..f2a8caa41 100644--- a/toonz/sources/tnztools/selectiontool.cpp+++ b/toonz/sources/tnztools/selectiontool.cpp@@ -972,6 +972,12 @@ void SelectionTool::updateAction(TPointD pos, const TMouseEvent &e) {}maxDist = 5 * pixelSize;maxDist2 = maxDist * maxDist;+ if (!isLevelType() && !isSelectedFramesType() &&+ tdistance2(getCenter(), pos) < maxDist2) {+ m_what = MOVE_CENTER;+ m_cursorId = ToolCursor::PointingHandCursor;+ return;+ }if (tdistance2(bbox.getP00(), pos) < maxDist2 ||tdistance2(bbox.getP11(), pos) < maxDist2 ||tdistance2(bbox.getP01(), pos) < maxDist2 ||@@ -1021,12 +1027,6 @@ void SelectionTool::updateAction(TPointD pos, const TMouseEvent &e) {}return;}- if (!isLevelType() && !isSelectedFramesType() &&- tdistance2(getCenter(), pos) < maxDist2) {- m_what = MOVE_CENTER;- m_cursorId = ToolCursor::PointingHandCursor;- return;- }TPointD hpos = bbox.getP10() - TPointD(14 * pixelSize, 15 * pixelSize);TRectD rect(hpos - TPointD(14 * pixelSize, 5 * pixelSize),hpos + TPointD(14 * pixelSize, 5 * pixelSize));