Skip to content

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

C

fix flipbook wobbling when dragging while playing

shun-iwasawa56a0d55164a7
diff --git a/toonz/sources/toonz/comboviewerpane.cpp b/toonz/sources/toonz/comboviewerpane.cpp
index 9e49841a5..a57f7be65 100644
--- a/toonz/sources/toonz/comboviewerpane.cpp
+++ b/toonz/sources/toonz/comboviewerpane.cpp
@@ -330,9 +330,7 @@ void ComboViewerPanel::onDrawFrame(int frame,
// make sure to redraw the frame here.
// repaint() does NOT immediately redraw the frame for QOpenGLWidget
- if (frameHandle->isPlaying())
- qApp->processEvents(QEventLoop::ExcludeUserInputEvents |
- QEventLoop::ExcludeSocketNotifiers);
+ if (frameHandle->isPlaying()) qApp->processEvents();
}
//-----------------------------------------------------------------------------
diff --git a/toonz/sources/toonz/imageviewer.cpp b/toonz/sources/toonz/imageviewer.cpp
index 96f74f881..53ef0f41d 100644
--- a/toonz/sources/toonz/imageviewer.cpp
+++ b/toonz/sources/toonz/imageviewer.cpp
@@ -420,9 +420,7 @@ void ImageViewer::setImage(TImageP image) {
// make sure to redraw the frame here.
// repaint() does NOT immediately redraw the frame for QOpenGLWidget
update();
- if (!isColorModel())
- qApp->processEvents(QEventLoop::ExcludeUserInputEvents |
- QEventLoop::ExcludeSocketNotifiers);
+ if (!isColorModel()) qApp->processEvents();
}
//-------------------------------------------------------------------
diff --git a/toonz/sources/toonz/viewerpane.cpp b/toonz/sources/toonz/viewerpane.cpp
index 6923332d9..e95f94d0b 100644
--- a/toonz/sources/toonz/viewerpane.cpp
+++ b/toonz/sources/toonz/viewerpane.cpp
@@ -304,9 +304,7 @@ void SceneViewerPanel::onDrawFrame(int frame,
// make sure to redraw the frame here.
// repaint() does NOT immediately redraw the frame for QOpenGLWidget
- if (frameHandle->isPlaying())
- qApp->processEvents(QEventLoop::ExcludeUserInputEvents |
- QEventLoop::ExcludeSocketNotifiers);
+ if (frameHandle->isPlaying()) qApp->processEvents();
}
//-----------------------------------------------------------------------------