From 7b497a5d5cccdb60f4448058e2d7db7a2368c5b1 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: May 21 2018 06:33:03 +0000 Subject: fix viewer refreshing with raster brush (#1989) --- diff --git a/toonz/sources/tnztools/fullcolorbrushtool.cpp b/toonz/sources/tnztools/fullcolorbrushtool.cpp index e970d75..de5ac66 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(