Changeset 6098

Show
Ignore:
Timestamp:
02/06/07 14:44:20
Author:
robert
Message:

Fixed Suse9.3 build problem due to different handling Quat copy constuctor

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/PrimaryRecords.cpp

    r6091 r6098  
    954954            { 
    955955                // TODO: What direction is zero yaw and pitch? 
    956                 osg::Quat rotation( osg::Quat(osg::inDegrees(yaw),osg::Vec3(0.0,0.0,1.0)) * osg::Quat(osg::inDegrees(pitch),osg::Vec3(1.0,0.0,0.0)) ); 
     956                osg::Quat rotation = ( osg::Quat(osg::inDegrees(double(yaw)),osg::Vec3(0.0,0.0,1.0)) * 
     957                                       osg::Quat(osg::inDegrees(double(pitch)),osg::Vec3(1.0,0.0,0.0)) ); 
    957958                light->setDirection(rotation*osg::Vec3(0.0,1.0,0.0)); 
    958959            }