diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-02-28 19:35:49 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-02-28 19:35:49 +0400 |
commit | e3f5cd8fd462d54961a6d87400b3b67a92f734d6 (patch) | |
tree | bd62335724c14ebd70d65dfd92bc63dc2937f1e0 /io_mesh_uv_layout/export_uv_svg.py | |
parent | 55d1a5020af9fa652dd2af9bea4e01986284ef9c (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.py | 4 |
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 |