OpenToonz - An open-source full-featured 2D animation creation software
C
fix display of motion path stroke (#2188)
shun-iwasawa5cedd8c678d1
diff --git a/toonz/sources/tnztools/brushtool.cpp b/toonz/sources/tnztools/brushtool.cppindex 6b5183122..e87c74df1 100644--- a/toonz/sources/tnztools/brushtool.cpp+++ b/toonz/sources/tnztools/brushtool.cpp@@ -1526,7 +1526,14 @@ void BrushTool::leftButtonDrag(const TPointD &pos, const TMouseEvent &e) {// In order to draw the current brush tipinvalidateRect += TRectD(m_brushPos - halfThick, m_brushPos + halfThick);- if (!invalidateRect.isEmpty()) invalidate(invalidateRect.enlarge(2));+ if (!invalidateRect.isEmpty()) {+ // for motion path, call the invalidate function directry to ignore dpi of+ // the current level+ if (m_isPath)+ m_viewer->GLInvalidateRect(invalidateRect.enlarge(2));+ else+ invalidate(invalidateRect.enlarge(2));+ }}}