Cast double constant to float explicitely

This commit is contained in:
Andrei Kortunov 2021-04-19 17:08:03 +04:00
parent 7d5c5f8a24
commit d10399e083
3 changed files with 3 additions and 3 deletions

View file

@ -142,7 +142,7 @@ namespace SceneUtil
osg::Vec3f dir = toPos - fromPos;
dir.normalize();
osg::Quat rot = osg::Quat(-osg::PI / 2, osg::Vec3(0, 0, 1));
osg::Quat rot(static_cast<float>(-osg::PI_2), osg::Vec3f(0, 0, 1));
dir = rot * dir;
unsigned short diamondIndex = 0;