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>2013-03-12 11:21:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-12 11:21:20 +0400
commite78107c8046a705134be929fc5d8004afd2b9879 (patch)
treee552ba6ae3161ae3ffb4e99ce6ba190dbaea77cb /io_scene_x3d
parent369cfd3766fc2d6e764d3e6a39f448674fabebca (diff)
fix for importing face colors
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/import_x3d.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index cddcead6..0a9d373c 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -1824,6 +1824,8 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry):
color_index = 0
else:
color_index = ifs_color_index[color_index]
+ # skip eedadoodle vert
+ color_index += 1
try:
col = ifs_vcol[color_index]
except IndexError:
@@ -2110,7 +2112,7 @@ def importShape(node, ancestry, global_matrix):
else:
ima_urls = [ima_urls]
# ima_urls is a list or None
-
+
if ima_urls is None:
print("\twarning, image with no URL, this is odd")
else:
@@ -2129,7 +2131,7 @@ def importShape(node, ancestry, global_matrix):
image_depth = bpyima.depth
except:
image_depth = -1
-
+
mtex = bpymat.texture_slots.add()
mtex.texture = texture