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