Use osg::Quat::value_type instead of double in collada plugin

Note that although the value_type is currently always double, using the proper typedef will open the door to implementing a float Quaternion in the future (as I have done so in my own fork)
This commit is contained in:
scrawl 2017-08-20 15:56:40 +00:00
parent 55f5335f18
commit fb214b62a1

View File

@ -39,7 +39,7 @@ void daeWriter::writeUpdateTransformElements(const osg::Vec3 &pos, const osg::Qu
// Make a three rotate place elements for the euler angles
// TODO decompose quaternion into three euler angles
double angle;
osg::Quat::value_type angle;
osg::Vec3 axis;
q.getRotate( angle, axis );
@ -154,7 +154,7 @@ void daeWriter::apply( osg::PositionAttitudeTransform &node )
scale->getValue().append3( s.x(), s.y(), s.z() );
}
double angle;
osg::Quat::value_type angle;
osg::Vec3 axis;
q.getRotate( angle, axis );
if ( angle != 0 )