Skip to content

Commit 8c25066

Browse files
committed
implemented llop
1 parent ac622f9 commit 8c25066

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/DMD.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,14 @@ void DMD::SerumThread()
917917
if (sceneCurrentFrame >= sceneFrameCount)
918918
{
919919
// The scene is finished.
920-
if (sceneRepeatCount > 0)
920+
if (sceneRepeatCount > 1)
921921
{
922922
sceneCurrentFrame = 0;
923-
sceneRepeatCount--;
923+
if (--sceneRepeatCount == 1) sceneRepeatCount = 0;
924+
}
925+
else if (sceneRepeatCount == 1) {
926+
// loop
927+
sceneCurrentFrame = 0;
924928
}
925929
else
926930
{

0 commit comments

Comments
 (0)