MSVC: fix warnings about conversion between float and double

This commit is contained in:
wmayer
2023-11-21 21:20:29 +01:00
committed by wwmayer
parent 624b5a396a
commit 451c094f39
2 changed files with 5 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ void FixedTimeAnimation::initialize()
float angle;
SbRotation(navigation->getCamera()->orientation.getValue().inverse() * targetOrientation).getValue(rotationAxisPost, angle);
if (angle > M_PI) {
angle -= 2 * M_PI;
angle -= float(2 * M_PI);
}
// Convert post-multiplication axis to a pre-multiplication axis