From eab838e9c4282fdce1e9af32415a4c8f79428305 Mon Sep 17 00:00:00 2001 From: Rodney Date: Dec 28 2021 12:26:15 +0000 Subject: Merge pull request #4202 from shun-iwasawa/fix_flipbook_wobbling Fix Flipbook wobbling when dragging while playing --- diff --git a/toonz/sources/toonz/comboviewerpane.cpp b/toonz/sources/toonz/comboviewerpane.cpp index 9e49841..a57f7be 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 96f74f8..53ef0f4 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 6923332..e95f94d 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(); } //-----------------------------------------------------------------------------