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_scene_x3d/export_x3d.py
parent5127af871d9ca8493af0c36db6d6ec3f49c42451 (diff)
update addons enabled by default to use 'faces -> tessfaces' also grease pencil scatter and quake map export.
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r--io_scene_x3d/export_x3d.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 8bd40659..ddc07132 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -526,10 +526,10 @@ def export(file,
mesh_id_normals = prefix_quoted_str(mesh_id, 'normals_')
# tessellation faces may not exist
- if not mesh.faces and mesh.polygons:
+ if not mesh.tessfaces and mesh.polygons:
mesh.update(calc_tessface=True)
- if not mesh.faces:
+ if not mesh.tessfaces:
return
use_collnode = bool([mod for mod in obj.modifiers
@@ -582,7 +582,7 @@ def export(file,
# fast access!
mesh_vertices = mesh.vertices[:]
- mesh_faces = mesh.faces[:]
+ mesh_faces = mesh.tessfaces[:]
mesh_faces_materials = [f.material_index for f in mesh_faces]
mesh_faces_vertices = [f.vertices[:] for f in mesh_faces]
@@ -750,7 +750,7 @@ def export(file,
# build a mesh mapping dict
vertex_hash = [{} for i in range(len(mesh.vertices))]
# worst case every face is a quad
- face_tri_list = [[None, None, None] for i in range(len(mesh.faces) * 2)]
+ face_tri_list = [[None, None, None] for i in range(len(mesh.tessfaces) * 2)]
vert_tri_list = []
totvert = 0
totface = 0