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>2012-03-23 05:18:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-23 05:18:52 +0400
commite63e95789e23f672b2d55319232e391e254219fb (patch)
treeb25900ebb754df4376e03c49789c6ea5a808506f /io_mesh_stl/blender_utils.py
parent5127af871d9ca8493af0c36db6d6ec3f49c42451 (diff)
update addons enabled by default to use 'faces -> tessfaces' also grease pencil scatter and quake map export.
Diffstat (limited to 'io_mesh_stl/blender_utils.py')
-rw-r--r--io_mesh_stl/blender_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py
index 2e8c8d6d..76c864cd 100644
--- a/io_mesh_stl/blender_utils.py
+++ b/io_mesh_stl/blender_utils.py
@@ -66,7 +66,7 @@ def faces_from_mesh(ob, apply_modifier=False, triangulate=True):
if triangulate:
# From a list of faces, return the face triangulated if needed.
def iter_face_index():
- for face in mesh.faces:
+ for face in mesh.tessfaces:
vertices = face.vertices[:]
if len(vertices) == 4:
yield vertices[0], vertices[1], vertices[2]
@@ -75,7 +75,7 @@ def faces_from_mesh(ob, apply_modifier=False, triangulate=True):
yield vertices
else:
def iter_face_index():
- for face in mesh.faces:
+ for face in mesh.tessfaces:
yield face.vertices[:]
vertices = mesh.vertices