diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-09 00:48:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-09 00:48:29 +0400 |
commit | b941652219a5fe080bf2d71664a393ca83c238b5 (patch) | |
tree | 9764247865bec3116c0bb2334da9b19ecae60368 /io_mesh_ply/export_ply.py | |
parent | dda5658325f247c4773ce43721d6a522b11d3048 (diff) |
remove sticky coordinates use.
Diffstat (limited to 'io_mesh_ply/export_ply.py')
-rw-r--r-- | io_mesh_ply/export_ply.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py index 60d9b7ea..4e67b0c9 100644 --- a/io_mesh_ply/export_ply.py +++ b/io_mesh_ply/export_ply.py @@ -70,16 +70,15 @@ def save(operator, mesh.calc_tessface() has_uv = (len(mesh.tessface_uv_textures) > 0) - has_uv_vertex = (len(mesh.sticky) > 0) has_vcol = len(mesh.tessface_vertex_colors) > 0 - if (not has_uv) and (not has_uv_vertex): + if not has_uv: use_uv_coords = False if not has_vcol: use_colors = False if not use_uv_coords: - has_uv = has_uv_vertex = False + has_uv = False if not use_colors: has_vcol = False @@ -135,9 +134,6 @@ def save(operator, if has_uv: uvcoord = uv[j][0], uv[j][1] uvcoord_key = rvec2d(uvcoord) - elif has_uv_vertex: - uvcoord = v.uvco[0], v.uvco[1] - uvcoord_key = rvec2d(uvcoord) if has_vcol: color = col[j] |