Show
Ignore:
Timestamp:
01/27/10 16:37:45 (5 years ago)
Author:
cedricpinson
Message:

From Cedric Pinson, remove unused file, fix crash for old files

Files:
1 modified

Legend:

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

    r11009 r11014  
    3636    initVertexSetFromBones(bm, geom.getVertexInfluenceSet().getUniqVertexSetToBoneSetList()); 
    3737 
    38     geom.copyFrom(*geom.getSourceGeometry()); 
     38    if (geom.getSourceGeometry()) 
     39        geom.copyFrom(*geom.getSourceGeometry()); 
    3940    geom.setVertexArray(0); 
    4041    geom.setNormalArray(0); 
     
    5051            return; 
    5152 
     53    if (!geom.getSourceGeometry()) { 
     54        osg::notify(osg::WARN) << this << " RigTransformSoftware no source geometry found on RigGeometry" << std::endl; 
     55        return; 
     56    } 
    5257    osg::Geometry& source = *geom.getSourceGeometry(); 
    5358    osg::Geometry& destination = geom;