|
|
@ -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
|
|
|
|
|
|
|
|
|
|
|
|