Show
Ignore:
Timestamp:
12/09/09 19:45:46 (5 years ago)
Author:
cedricpinson
Message:

From Cedric Pinson,
Add check in RigTransformSoftware? if bones are null
Indent TimelineAnimationManager?
Add check for NaN in UpdateCallback?.cpp
Fix TimelineAnimationManager? clear target (a refactore of Timeline is require for futur)
Fix Computation of bounding box for RigGeometry?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgAnimation/UpdateCallback.cpp

    r10689 r10877  
    2020#include <osg/MatrixTransform> 
    2121#include <osg/PositionAttitudeTransform> 
     22#include <osg/Math> 
    2223 
    2324using namespace osgAnimation; 
     
    7071        osg::Matrix::rotate(y,0.0,1.0,0.0) * 
    7172        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; 
    7678} 
    7779