From b941652219a5fe080bf2d71664a393ca83c238b5 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Mon, 8 Oct 2012 20:48:29 +0000
Subject: [PATCH] remove sticky coordinates use.

---
 io_mesh_ply/export_ply.py  |  8 ++------
 io_scene_3ds/export_3ds.py | 10 ++--------
 2 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py
index 60d9b7ea3..4e67b0c94 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]
diff --git a/io_scene_3ds/export_3ds.py b/io_scene_3ds/export_3ds.py
index c5b121610..f7ecf2161 100644
--- a/io_scene_3ds/export_3ds.py
+++ b/io_scene_3ds/export_3ds.py
@@ -831,14 +831,8 @@ def make_mesh_chunk(mesh, matrix, materialDict):
         vert_array = _3ds_array()
         for vert in mesh.vertices:
             vert_array.add(_3ds_point_3d(vert.co))
-        # If the mesh has vertex UVs, create an array of UVs:
-        if mesh.sticky:
-            uv_array = _3ds_array()
-            for uv in mesh.sticky:
-                uv_array.add(_3ds_point_uv(uv.co))
-        else:
-            # no UV at all:
-            uv_array = None
+        # no UV at all:
+        uv_array = None
 
     # create the chunk:
     mesh_chunk = _3ds_chunk(OBJECT_MESH)
-- 
GitLab