Changeset 11252

Show
Ignore:
Timestamp:
03/19/10 11:19:41 (5 years ago)
Author:
mplatings
Message:

Fixed an infinite loop when loading a malformed file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/fbx/ReaderWriterFBX.cpp

    r11251 r11252  
    11#include <sstream> 
    22#include <memory> 
    3 #include <cassert> 
    43 
    54#include <osg/Notify> 
     
    158157                    else 
    159158                    { 
    160                         assert(0); 
     159                        osg::notify(osg::WARN) << "No vertex influences found for \"" << osgBone.getName() << "\"" << std::endl; 
    161160                    } 
    162161                } 
     
    165164        else 
    166165        { 
    167             assert(0); 
     166            osg::notify(osg::WARN) << "No bone found for \"" << fbxBone->GetName() << "\"" << std::endl; 
     167            ++it; 
    168168        } 
    169169    }