Skip to content

Commit

Permalink
closes assimp#2809: fix crash for special ifc file.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed Dec 8, 2019
1 parent fbebeba commit e3da92f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/Importer/IFC/IFCGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)];
Expand Down

0 comments on commit e3da92f

Please sign in to comment.