Don't set normals on import since they aren't used

master
Senpai 5 days ago
parent 745aed371d
commit 0c943aa721

@ -70,7 +70,6 @@ def convert_model(geo_model, mesh_data, obj, scale):
mesh_data.vertices.foreach_set("co", coords) mesh_data.vertices.foreach_set("co", coords)
mesh_data.vertices.foreach_set("normal", normals)
mesh_data.loops.foreach_set("vertex_index", indices) mesh_data.loops.foreach_set("vertex_index", indices)
mesh_data.polygons.foreach_set("loop_start", loop_starts) mesh_data.polygons.foreach_set("loop_start", loop_starts)
mesh_data.polygons.foreach_set("loop_total", loop_totals) mesh_data.polygons.foreach_set("loop_total", loop_totals)
@ -96,9 +95,6 @@ def convert_model(geo_model, mesh_data, obj, scale):
mesh_data.validate() mesh_data.validate()
mesh_data.update() mesh_data.update()
mesh_data.vertices.foreach_set("normal", normals)
mesh_data.update()
mesh_data.flip_normals()
#todo: attempt to load textures/images #todo: attempt to load textures/images

Loading…
Cancel
Save