fix advancing nested animations flipping the order of conditions to guarantee that all nested animations advance Diffs= 5ccc21fa3 fix advancing nested animations (#7246) Co-authored-by: hernan <hernan@rive.app>
diff --git a/.rive_head b/.rive_head index 17e0166..231082d 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -8700c736576bf50e591a4ba61c005907c398a908 +5ccc21fa3a5f726827da601f04cf234138b379df
diff --git a/src/nested_artboard.cpp b/src/nested_artboard.cpp index fdd40b8..901661c 100644 --- a/src/nested_artboard.cpp +++ b/src/nested_artboard.cpp
@@ -136,7 +136,7 @@ } for (auto animation : m_NestedAnimations) { - keepGoing = keepGoing || animation->advance(elapsedSeconds); + keepGoing = animation->advance(elapsedSeconds) || keepGoing; } return m_Artboard->advance(elapsedSeconds) || keepGoing; }