From Paul Martz, "This change fixes a problem with PAT nodes during FLT export."
Note, Paul Martz has merged this patch into OpenSceneGraph-2.6.
This commit is contained in:
parent
43d19c11cf
commit
0c9214636f
@ -280,11 +280,11 @@ FltExportVisitor::apply( osg::PositionAttitudeTransform& node )
|
||||
_firstNode = false;
|
||||
ScopedStatePushPop guard( this, node.getStateSet() );
|
||||
|
||||
osg::ref_ptr<osg::RefMatrix> m = new osg::RefMatrix;
|
||||
|
||||
const osg::Vec3d& trans = node.getPosition();
|
||||
const osg::Quat& rot = node.getAttitude();
|
||||
m->set(osg::Matrix::translate(trans) * osg::Matrix::rotate(rot) );
|
||||
osg::ref_ptr<osg::RefMatrix> m = new osg::RefMatrix(
|
||||
osg::Matrix::translate( -node.getPivotPoint() ) *
|
||||
osg::Matrix::scale( node.getScale() ) *
|
||||
osg::Matrix::rotate( node.getAttitude() ) *
|
||||
osg::Matrix::translate( node.getPosition() ) );
|
||||
|
||||
std::vector< osg::Referenced* > saveUserDataList;
|
||||
unsigned int idx;
|
||||
|
Loading…
Reference in New Issue
Block a user