Merge pull request #2814 from assimp/issue_2809
closes https://github.com/assimp/assimp/issues/2809: fix crash for sp…pull/2815/head
commit
d8575b2b55
|
@ -138,8 +138,9 @@ void ProcessPolygonBoundaries(TempMesh& result, const TempMesh& inmesh, size_t m
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (outer_polygon_it == end) {
|
||||||
ai_assert(outer_polygon_it != end);
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const size_t outer_polygon_size = *outer_polygon_it;
|
const size_t outer_polygon_size = *outer_polygon_it;
|
||||||
const IfcVector3& master_normal = normals[std::distance(begin, outer_polygon_it)];
|
const IfcVector3& master_normal = normals[std::distance(begin, outer_polygon_it)];
|
||||||
|
|
Loading…
Reference in New Issue