closes https://github.com/assimp/assimp/issues/2809: fix crash for special ifc file.
parent
fbebeba2b0
commit
e3da92f7d3
|
@ -138,8 +138,9 @@ void ProcessPolygonBoundaries(TempMesh& result, const TempMesh& inmesh, size_t m
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
ai_assert(outer_polygon_it != end);
|
||||
if (outer_polygon_it == end) {
|
||||
return;
|
||||
}
|
||||
|
||||
const size_t outer_polygon_size = *outer_polygon_it;
|
||||
const IfcVector3& master_normal = normals[std::distance(begin, outer_polygon_it)];
|
||||
|
|
Loading…
Reference in New Issue