Fixed an infinite loop when loading a malformed file.

This commit is contained in:
Michael PLATINGS
2010-03-19 10:19:41 +00:00
parent 660cb74877
commit 328c19dad9

View File

@@ -1,6 +1,5 @@
#include <sstream> #include <sstream>
#include <memory> #include <memory>
#include <cassert>
#include <osg/Notify> #include <osg/Notify>
#include <osg/MatrixTransform> #include <osg/MatrixTransform>
@@ -157,14 +156,15 @@ void resolveBindMatrices(
} }
else else
{ {
assert(0); osg::notify(osg::WARN) << "No vertex influences found for \"" << osgBone.getName() << "\"" << std::endl;
} }
} }
} }
} }
else else
{ {
assert(0); osg::notify(osg::WARN) << "No bone found for \"" << fbxBone->GetName() << "\"" << std::endl;
++it;
} }
} }
} }