Skip to content

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

C

fix viewer partial redrawing (#1921)

shun-iwasawa8f6c6d6c8aaf
diff --git a/toonz/sources/toonz/sceneviewer.cpp b/toonz/sources/toonz/sceneviewer.cpp
index d3355458d..351686889 100644
--- a/toonz/sources/toonz/sceneviewer.cpp
+++ b/toonz/sources/toonz/sceneviewer.cpp
@@ -928,7 +928,11 @@ void SceneViewer::drawEnableScissor() {
//-----------------------------------------------------------------------------
void SceneViewer::drawDisableScissor() {
- if (!m_clipRect.isEmpty() && !m_draw3DMode) glDisable(GL_SCISSOR_TEST);
+ if (!m_clipRect.isEmpty() && !m_draw3DMode) {
+ glDisable(GL_SCISSOR_TEST);
+ // clear the clipping rect
+ m_clipRect.empty();
+ }
}
//-----------------------------------------------------------------------------