Skip to content

Commit

Permalink
Use osg::Quat::value_type instead of double in collada plugin
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
scrawl committed Aug 20, 2017
1 parent 55f5335 commit fb214b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osgPlugins/dae/daeWTransforms.cpp
Expand Up @@ -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 );

Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit fb214b6

Please sign in to comment.