OpenToonz - An open-source full-featured 2D animation creation software
C
fix fx gadget offset
shun-iwasawa4c48ddbeb5a8
diff --git a/toonz/sources/tnztools/edittoolgadgets.cpp b/toonz/sources/tnztools/edittoolgadgets.cppindex 18bb6d0ea..fd9374940 100644--- a/toonz/sources/tnztools/edittoolgadgets.cpp+++ b/toonz/sources/tnztools/edittoolgadgets.cpp@@ -2084,6 +2084,15 @@ EditToolGadgets::DragTool *FxGadgetController::createDragTool(int gadgetId) {//---------------------------------------------------------------------------TAffine FxGadgetController::getMatrix() {+ TFx *fx = m_fxHandle ? m_fxHandle->getFx() : 0;+ if (fx) {+ int referenceColumnIndex = fx->getReferenceColumnIndex();+ if (referenceColumnIndex == -1)+ return m_tool->getMatrix().inv();+ else if (referenceColumnIndex != m_tool->getColumnIndex())+ return m_tool->getMatrix().inv() *+ m_tool->getColumnMatrix(referenceColumnIndex, -1);+ }return m_tool->getMatrix().inv() * m_tool->getCurrentColumnMatrix();}