Loop back to the beginning when ending simulation playback

CURA-12192
This commit is contained in:
Erwan MATHIEU 2024-11-11 16:13:10 +01:00
parent 94b8728962
commit 0991c3c01d
3 changed files with 9 additions and 14 deletions

View file

@ -54,9 +54,9 @@ class SimulationViewProxy(QObject):
def currentPath(self):
return self._simulation_view.getCurrentPath()
@pyqtSlot(float, result=bool)
def advanceTime(self, duration: float) -> bool:
return self._simulation_view.advanceTime(duration)
@pyqtSlot(float)
def advanceTime(self, duration: float) -> None:
self._simulation_view.advanceTime(duration)
@pyqtProperty(int, notify=currentPathChanged)
def minimumPath(self):