Show
Ignore:
Timestamp:
12/09/09 19:45:46 (4 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/include/osgAnimation/RigTransformSoftware

    r10693 r10877  
    8787                if (_bones.empty()) 
    8888                { 
    89                     osg::notify(osg::WARN) << "RigTransformSoftware::UniqBoneSetVertexSet no bones found" << std::endl; 
     89                    osg::notify(osg::WARN) << this << " RigTransformSoftware::UniqBoneSetVertexSet no bones found" << std::endl; 
    9090                    _result = osg::Matrix::identity(); 
    9191                    return; 
     
    9797                { 
    9898                    const Bone* bone = _bones[i].getBone(); 
     99                    if (!bone) 
     100                    { 
     101                        osg::notify(osg::WARN) << this << " RigTransformSoftware::computeMatrixForVertexSet Warning a bone is null, skip it" << std::endl; 
     102                        continue; 
     103                    } 
    99104                    const osg::Matrix& invBindMatrix = bone->getInvBindMatrixInSkeletonSpace(); 
    100105                    const osg::Matrix& matrix = bone->getMatrixInSkeletonSpace();