- Timestamp:
- 12/09/09 19:45:46 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgAnimation/UpdateCallback.cpp
r10689 r10877 20 20 #include <osg/MatrixTransform> 21 21 #include <osg/PositionAttitudeTransform> 22 #include <osg/Math> 22 23 23 24 using namespace osgAnimation; … … 70 71 osg::Matrix::rotate(y,0.0,1.0,0.0) * 71 72 osg::Matrix::rotate(z,0.0,0.0,1.0); 72 mat.setMatrix(osg::Matrix::scale(_scale->getValue()) * 73 m * 74 osg::Matrix::translate(_position->getValue())); 75 mat.dirtyBound(); 73 m = osg::Matrix::scale(_scale->getValue()) * m * osg::Matrix::translate(_position->getValue()); 74 mat.setMatrix(m); 75 76 if (!m.valid()) 77 osg::notify(osg::WARN) << this << " UpdateTransform::update detected NaN" << std::endl; 76 78 } 77 79
