From c2dfb1829ca75b54d9e9a22e22d94b8d5f00aab4 Mon Sep 17 00:00:00 2001 From: aminkhalsi Date: Wed, 25 Mar 2026 09:45:19 +0100 Subject: [PATCH] stop camera before start playing path --- GraphicsView/include/CGAL/Qt/qglviewer_impl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GraphicsView/include/CGAL/Qt/qglviewer_impl.h b/GraphicsView/include/CGAL/Qt/qglviewer_impl.h index ff35bb5de47..66a6ff1a601 100644 --- a/GraphicsView/include/CGAL/Qt/qglviewer_impl.h +++ b/GraphicsView/include/CGAL/Qt/qglviewer_impl.h @@ -2076,6 +2076,9 @@ void CGAL::QGLViewer::keyPressEvent(QKeyEvent *e) { static QElapsedTimer doublePress; if (modifiers == playPathKeyboardModifiers()) { + if(camera()->frame()->isSpinning()){ + camera()->frame()->stopSpinning(); + } qint64 elapsed = doublePress.restart(); if ((elapsed < 250) && (index == previousPathId_)) camera()->resetPath(index);