From fe38947dbe61f21cb4a2883bd8fe901ffbbfe0bc Mon Sep 17 00:00:00 2001 From: Mathieu Westphal Date: Mon, 16 Dec 2024 08:22:32 +0100 Subject: [PATCH] Update library/src/animationManager.cxx Co-authored-by: Michael MIGLIORE --- library/src/animationManager.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/src/animationManager.cxx b/library/src/animationManager.cxx index f37a13938e..5702970240 100644 --- a/library/src/animationManager.cxx +++ b/library/src/animationManager.cxx @@ -209,13 +209,8 @@ void animationManager::Tick() // Modulo computation, compute CurrentTime in the time range. if (this->CurrentTime < this->TimeRange[0] || this->CurrentTime > this->TimeRange[1]) { - auto modulo = [](double val, double mod) - { - const double remainder = fmod(val, mod); - return remainder < 0 ? remainder + mod : remainder; - }; this->CurrentTime = this->TimeRange[0] + - modulo(this->CurrentTime - this->TimeRange[0], this->TimeRange[1] - this->TimeRange[0]); + std::remainder(this->CurrentTime - this->TimeRange[0], this->TimeRange[1] - this->TimeRange[0]); } if (this->LoadAtTime(this->CurrentTime))