From 4f441771f0cc8a3413b41f95c2f3f31543a1bd80 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 6 Feb 2007 13:44:20 +0000 Subject: [PATCH] Fixed Suse9.3 build problem due to different handling Quat copy constuctor --- src/osgPlugins/OpenFlight/PrimaryRecords.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/OpenFlight/PrimaryRecords.cpp b/src/osgPlugins/OpenFlight/PrimaryRecords.cpp index 571409aa9..5d547326a 100644 --- a/src/osgPlugins/OpenFlight/PrimaryRecords.cpp +++ b/src/osgPlugins/OpenFlight/PrimaryRecords.cpp @@ -953,7 +953,8 @@ protected: if ((w==0.0) || (light->getSpotCutoff()<180.0)) { // TODO: What direction is zero yaw and pitch? - 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)) ); + osg::Quat rotation = ( osg::Quat(osg::inDegrees(double(yaw)),osg::Vec3(0.0,0.0,1.0)) * + osg::Quat(osg::inDegrees(double(pitch)),osg::Vec3(1.0,0.0,0.0)) ); light->setDirection(rotation*osg::Vec3(0.0,1.0,0.0)); }