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

patch [#30969] patch for 3ds importer screwing up UVs in current trunk

from Alexander Gessler (aramis_acg) 
parent d98814b2
Branches
Tags
No related merge requests found
......@@ -328,9 +328,9 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
if v3 == 0:
v1, v2, v3 = v3, v1, v2
uvl[pl.loop_start] = contextMeshUV[v1 * 2:(v1 * 2) + 2]
uvl[pl.loop_start + 1] = contextMeshUV[v2 * 2:(v2 * 2) + 2]
uvl[pl.loop_start + 2] = contextMeshUV[v3 * 2:(v3 * 2) + 2]
uvl[pl.loop_start].uv = contextMeshUV[v1 * 2: (v1 * 2) + 2]
uvl[pl.loop_start + 1].uv = contextMeshUV[v2 * 2: (v2 * 2) + 2]
uvl[pl.loop_start + 2].uv = contextMeshUV[v3 * 2: ( v3 * 2) + 2]
# always a tri
bmesh.validate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment