Skip to content

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

C

fix viewer refreshing with raster brush (#1989)

shun-iwasawa7b497a5d5ccc
diff --git a/toonz/sources/tnztools/fullcolorbrushtool.cpp b/toonz/sources/tnztools/fullcolorbrushtool.cpp
index e970d7565..de5ac6673 100644
--- a/toonz/sources/tnztools/fullcolorbrushtool.cpp
+++ b/toonz/sources/tnztools/fullcolorbrushtool.cpp
@@ -721,6 +721,10 @@ void FullColorBrushTool::updateCurrentStyle() {
}
}
+ // if this function is called from onEnter(), the clipping rect will not be
+ // set in order to update whole viewer.
+ if (prevMinCursorThick == 0 && prevMaxCursorThick == 0) return;
+
if (m_minCursorThick != prevMinCursorThick ||
m_maxCursorThick != prevMaxCursorThick) {
TRectD rect(