Skip to content

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

C

Fix Toonz Raster MyPaint brush center

manongjohnfe8e5c6e723c
diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.cpp b/toonz/sources/tnztools/toonzrasterbrushtool.cpp
index 4066340d7..c432f367d 100644
--- a/toonz/sources/tnztools/toonzrasterbrushtool.cpp
+++ b/toonz/sources/tnztools/toonzrasterbrushtool.cpp
@@ -1019,6 +1019,7 @@ void ToonzRasterBrushTool::drawEmptyCircle(TPointD pos, int thick,
TPointD ToonzRasterBrushTool::getCenteredCursorPos(
const TPointD &originalCursorPos) {
+ if (m_isMyPaintStyleSelected) return originalCursorPos;
TXshLevelHandle *levelHandle = m_application->getCurrentLevel();
TXshSimpleLevel *level = levelHandle ? levelHandle->getSimpleLevel() : 0;
TDimension resolution =
diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.h b/toonz/sources/tnztools/toonzrasterbrushtool.h
index 9b5829783..c524ad653 100644
--- a/toonz/sources/tnztools/toonzrasterbrushtool.h
+++ b/toonz/sources/tnztools/toonzrasterbrushtool.h
@@ -227,7 +227,7 @@ protected:
static void drawEmptyCircle(TPointD point, int thick, bool isLxEven,
bool isLyEven, bool isPencil);
- static TPointD getCenteredCursorPos(const TPointD &originalCursorPos);
+ TPointD getCenteredCursorPos(const TPointD &originalCursorPos);
};
//------------------------------------------------------------