Fix bug where native meshes had normal smoothing enabled by default

This commit is contained in:
Dion Moult
2023-10-13 23:37:00 +11:00
parent 1f6d23c19c
commit 42719d3fe3
@@ -1158,6 +1158,7 @@ class IfcImporter:
mesh.polygons.add(self.mesh_data["total_polygons"])
mesh.polygons.foreach_set("loop_start", self.mesh_data["loop_start"])
mesh.polygons.foreach_set("loop_total", self.mesh_data["loop_total"])
mesh.polygons.foreach_set("use_smooth", [0] * self.mesh_data["total_polygons"])
mesh.update()
mesh["ios_materials"] = self.mesh_data["materials"]