Skip to content
Snippets Groups Projects
Commit 6c3f6c1a authored by Campbell Barton's avatar Campbell Barton
Browse files

update for correction in api

parent 1834dc6c
No related branches found
No related tags found
No related merge requests found
...@@ -432,7 +432,7 @@ def create_mesh(new_objects, has_ngons, use_ngons, use_edges, verts_loc, verts_t ...@@ -432,7 +432,7 @@ def create_mesh(new_objects, has_ngons, use_ngons, use_edges, verts_loc, verts_t
Takes all the data gathered and generates a mesh, adding the new object to new_objects Takes all the data gathered and generates a mesh, adding the new object to new_objects
deals with fgons, sharp edges and assigning materials deals with fgons, sharp edges and assigning materials
''' '''
from mesh_utils import ngon_tessellate from mesh_utils import ngon_tesselate
if not has_ngons: if not has_ngons:
use_ngons = False use_ngons = False
...@@ -493,7 +493,7 @@ def create_mesh(new_objects, has_ngons, use_ngons, use_edges, verts_loc, verts_t ...@@ -493,7 +493,7 @@ def create_mesh(new_objects, has_ngons, use_ngons, use_edges, verts_loc, verts_t
# FGons into triangles # FGons into triangles
if has_ngons and len_face_vert_loc_indices > 4: if has_ngons and len_face_vert_loc_indices > 4:
ngon_face_indices = ngon_tessellate(verts_loc, face_vert_loc_indices) ngon_face_indices = ngon_tesselate(verts_loc, face_vert_loc_indices)
faces.extend( faces.extend(
[( [(
[face_vert_loc_indices[ngon[0]], face_vert_loc_indices[ngon[1]], face_vert_loc_indices[ngon[2]]], [face_vert_loc_indices[ngon[0]], face_vert_loc_indices[ngon[1]], face_vert_loc_indices[ngon[2]]],
...@@ -1127,7 +1127,6 @@ def load(operator, context, filepath, ...@@ -1127,7 +1127,6 @@ def load(operator, context, filepath,
for obj in new_objects: for obj in new_objects:
obj.scale = scale, scale, scale obj.scale = scale, scale, scale
time_new = time.time() time_new = time.time()
print("finished importing: %r in %.4f sec." % (filepath, (time_new - time_main))) print("finished importing: %r in %.4f sec." % (filepath, (time_new - time_main)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment