MSVC: fix warnings about conversion between float and double
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -38,6 +38,10 @@
|
||||
#include <Mod/Material/App/ModelManager.h>
|
||||
#include <Mod/Material/App/ModelUuids.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4834)
|
||||
#endif
|
||||
|
||||
// clang-format off
|
||||
|
||||
class TestMaterial : public ::testing::Test {
|
||||
|
||||
Reference in New Issue
Block a user