From 017e8bdc7b0d652c8c52e16f2a129402d694fd74 Mon Sep 17 00:00:00 2001 From: Tats Date: Mon, 6 Jul 2015 21:24:06 -0600 Subject: [PATCH] Fixed bug: scenes were not updated properly resulting in no automatic video frame update. --- MainWindow.cpp | 11 ++++++++--- MapperGLCanvas.cpp | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/MainWindow.cpp b/MainWindow.cpp index 906a4bb..0fc4ed8 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -2234,9 +2234,14 @@ MainWindow* MainWindow::instance() { void MainWindow::updateCanvases() { - sourceCanvas->updateCanvas(); - destinationCanvas->updateCanvas(); - outputWindow->getCanvas()->updateCanvas(); + // Update scenes. + sourceCanvas->scene()->update(); + destinationCanvas->scene()->update(); + + // Update canvases. + sourceCanvas->update(); + destinationCanvas->update(); + outputWindow->getCanvas()->update(); } void MainWindow::showMappingContextMenu(const QPoint &point) diff --git a/MapperGLCanvas.cpp b/MapperGLCanvas.cpp index 7d4944b..7791e9a 100644 --- a/MapperGLCanvas.cpp +++ b/MapperGLCanvas.cpp @@ -314,6 +314,7 @@ MShape* MapperGLCanvas::getCurrentShape() { void MapperGLCanvas::updateCanvas() { update(); + scene()->update(); } void MapperGLCanvas::enableDisplayControls(bool display)