Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-16 22:06:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-16 22:06:47 +0400
commit193140e83e6e56c24ebfbf254580cbe76adc69ee (patch)
treed8488fc0f85e9de293e1f80f57f122b0506faa22 /io_scene_3ds
parentd98814b21c773137b01c8c94db875790cbbfb389 (diff)
patch [#30969] patch for 3ds importer screwing up UVs in current trunk
from Alexander Gessler (aramis_acg)
Diffstat (limited to 'io_scene_3ds')
-rw-r--r--io_scene_3ds/import_3ds.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py
index 46c4b729..32a41b1a 100644
--- a/io_scene_3ds/import_3ds.py
+++ b/io_scene_3ds/import_3ds.py
@@ -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()