mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Cast double constant to float explicitely
This commit is contained in:
parent
7d5c5f8a24
commit
d10399e083
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue