Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-27 02:21:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-27 02:21:24 +0400
commit6c3f6c1ae54810061b26efe59b1d2f67205a02ab (patch)
treea11ae5118fa1eb132a8f2d27478755cf8ef3cb05 /io_scene_obj
parent1834dc6ce513c363611749958af36c1783067e77 (diff)
update for correction in api
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/import_obj.py5
1 files changed, 2 insertions, 3 deletions
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)))