# Blend: fix loading of UV coordinates for models older than Blender 2.42
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@966 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
3ac2f700dd
commit
4ddddbc381
|
@ -790,7 +790,7 @@ void BlenderImporter::ConvertMesh(const Scene& in, const Object* obj, const Mesh
|
||||||
|
|
||||||
// collect texture coordinates, old-style (marked as deprecated in current blender sources)
|
// collect texture coordinates, old-style (marked as deprecated in current blender sources)
|
||||||
if (mesh->tface) {
|
if (mesh->tface) {
|
||||||
if (mesh->totface > static_cast<int> ( mesh->mtface.size())) {
|
if (mesh->totface > static_cast<int> ( mesh->tface.size())) {
|
||||||
ThrowException("Number of faces is larger than the corresponding UV face array (#2)");
|
ThrowException("Number of faces is larger than the corresponding UV face array (#2)");
|
||||||
}
|
}
|
||||||
for (std::vector<aiMesh*>::iterator it = temp->begin()+old; it != temp->end(); ++it) {
|
for (std::vector<aiMesh*>::iterator it = temp->begin()+old; it != temp->end(); ++it) {
|
||||||
|
|
Loading…
Reference in New Issue