[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1972] trunk/py/scripts/addons/ io_scene_obj/import_obj.py: update for correction in api
Campbell Barton
ideasman42 at gmail.com
Fri May 27 00:21:24 CEST 2011
Revision: 1972
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1972
Author: campbellbarton
Date: 2011-05-26 22:21:24 +0000 (Thu, 26 May 2011)
Log Message:
-----------
update for correction in api
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_obj/import_obj.py
Modified: trunk/py/scripts/addons/io_scene_obj/import_obj.py
===================================================================
--- trunk/py/scripts/addons/io_scene_obj/import_obj.py 2011-05-26 13:57:18 UTC (rev 1971)
+++ trunk/py/scripts/addons/io_scene_obj/import_obj.py 2011-05-26 22:21:24 UTC (rev 1972)
@@ -432,7 +432,7 @@
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 @@
# 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 @@
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)))
More information about the Bf-extensions-cvs
mailing list