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:
authorBastien Montagne <montagne29@wanadoo.fr>2012-02-28 19:35:49 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-02-28 19:35:49 +0400
commite3f5cd8fd462d54961a6d87400b3b67a92f734d6 (patch)
treebd62335724c14ebd70d65dfd92bc63dc2937f1e0 /io_mesh_uv_layout/export_uv_svg.py
parent55d1a5020af9fa652dd2af9bea4e01986284ef9c (diff)
Updated io_mesh_uv_layout addon to work with bmesh.
Note: would have loved to add an option to export tesselated layout (instead of ngon one), but currently I often get mesh without tesselation, and seems there is no way to call ensure_tesselated from python...
Diffstat (limited to 'io_mesh_uv_layout/export_uv_svg.py')
-rw-r--r--io_mesh_uv_layout/export_uv_svg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_mesh_uv_layout/export_uv_svg.py b/io_mesh_uv_layout/export_uv_svg.py
index 806ee608..ff504a0f 100644
--- a/io_mesh_uv_layout/export_uv_svg.py
+++ b/io_mesh_uv_layout/export_uv_svg.py
@@ -47,10 +47,10 @@ def write(fw, mesh, image_width, image_height, opacity, face_iter_func):
else:
fill_settings.append(fill_default)
- faces = mesh.faces
+ polys = mesh.polygons
for i, uvs in face_iter_func():
try: # rare cases material index is invalid.
- fill = fill_settings[faces[i].material_index]
+ fill = fill_settings[polys[i].material_index]
except IndexError:
fill = fill_default