Skip to content
Snippets Groups Projects
Commit b9416522 authored by Campbell Barton's avatar Campbell Barton
Browse files

remove sticky coordinates use.

parent dda56583
No related branches found
No related tags found
No related merge requests found
...@@ -70,16 +70,15 @@ def save(operator, ...@@ -70,16 +70,15 @@ def save(operator,
mesh.calc_tessface() mesh.calc_tessface()
has_uv = (len(mesh.tessface_uv_textures) > 0) has_uv = (len(mesh.tessface_uv_textures) > 0)
has_uv_vertex = (len(mesh.sticky) > 0)
has_vcol = len(mesh.tessface_vertex_colors) > 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 use_uv_coords = False
if not has_vcol: if not has_vcol:
use_colors = False use_colors = False
if not use_uv_coords: if not use_uv_coords:
has_uv = has_uv_vertex = False has_uv = False
if not use_colors: if not use_colors:
has_vcol = False has_vcol = False
...@@ -135,9 +134,6 @@ def save(operator, ...@@ -135,9 +134,6 @@ def save(operator,
if has_uv: if has_uv:
uvcoord = uv[j][0], uv[j][1] uvcoord = uv[j][0], uv[j][1]
uvcoord_key = rvec2d(uvcoord) uvcoord_key = rvec2d(uvcoord)
elif has_uv_vertex:
uvcoord = v.uvco[0], v.uvco[1]
uvcoord_key = rvec2d(uvcoord)
if has_vcol: if has_vcol:
color = col[j] color = col[j]
......
...@@ -831,14 +831,8 @@ def make_mesh_chunk(mesh, matrix, materialDict): ...@@ -831,14 +831,8 @@ def make_mesh_chunk(mesh, matrix, materialDict):
vert_array = _3ds_array() vert_array = _3ds_array()
for vert in mesh.vertices: for vert in mesh.vertices:
vert_array.add(_3ds_point_3d(vert.co)) vert_array.add(_3ds_point_3d(vert.co))
# If the mesh has vertex UVs, create an array of UVs: # no UV at all:
if mesh.sticky: uv_array = None
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
# create the chunk: # create the chunk:
mesh_chunk = _3ds_chunk(OBJECT_MESH) mesh_chunk = _3ds_chunk(OBJECT_MESH)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment