From 6c3f6c1ae54810061b26efe59b1d2f67205a02ab Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 26 May 2011 22:21:24 +0000 Subject: update for correction in api --- io_scene_obj/import_obj.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'io_scene_obj') diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 883e9e01..a7e2b24f 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -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 deals with fgons, sharp edges and assigning materials ''' - from mesh_utils import ngon_tessellate + from mesh_utils import ngon_tesselate if not has_ngons: use_ngons = False @@ -493,7 +493,7 @@ def create_mesh(new_objects, has_ngons, use_ngons, use_edges, verts_loc, verts_t # FGons into triangles 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( [( [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, for obj in new_objects: obj.scale = scale, scale, scale - time_new = time.time() print("finished importing: %r in %.4f sec." % (filepath, (time_new - time_main))) -- cgit v1.2.3