Compilation fix to pfb plugin, sent in by Ulrich Hertlein.

This commit is contained in:
Robert Osfield
2001-12-30 15:01:30 +00:00
parent 0d2599b402
commit 930db1112b

View File

@@ -10,11 +10,10 @@
#include <osg/Image>
#include <osg/Notify>
#include <osgDB/Registry>
//#include <osgDB/Registry>
#include <osgDB/FileNameUtils>
#include <osgDB/ReadFile>
#include <Performer/pf/pfNode.h>
#include <Performer/pf/pfGeode.h>
#include <Performer/pf/pfBillboard.h>
@@ -160,12 +159,12 @@ void ConvertToPerformer::apply(osg::Transform& osgTransform)
if (!osgTransform.getName().empty()) pf_dcs->setName(osgTransform.getName().c_str());
osg::Matrix& matrix = osgTransform.getMatrix();
const osg::Matrix& matrix = osgTransform.getMatrix();
pfMatrix pf_matrix(matrix[0][0],matrix[0][1],matrix[0][2],matrix[0][3],
matrix[1][0],matrix[1][1],matrix[1][2],matrix[1][3],
matrix[2][0],matrix[2][1],matrix[2][2],matrix[2][3],
matrix[3][0],matrix[3][1],matrix[3][2],matrix[3][3]);
pfMatrix pf_matrix(matrix(0,0),matrix(0,1),matrix(0,2),matrix(0,3),
matrix(1,0),matrix(1,1),matrix(1,2),matrix(1,3),
matrix(2,0),matrix(2,1),matrix(2,2),matrix(2,3),
matrix(3,0),matrix(3,1),matrix(3,2),matrix(3,3));
pf_dcs->setMat(pf_matrix);