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-02-13 17:45:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-13 17:45:40 +0400
commit29d6fb8307a6cc3d9d60f1d4518ea83144b93578 (patch)
tree1c3a816d3b283b835e89404044ded0a16e4a960a
parent46aca8503200f49be933884368ec41c93d7f3a7c (diff)
fix for x3d failing to load meshes when some faces were invalid.
-rw-r--r--io_scene_x3d/import_x3d.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 1cfb2837..6472f654 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -28,7 +28,7 @@ import shlex
def imageConvertCompat(path):
if os.sep == '\\':
- return path # assime win32 has quicktime, dont convert
+ return path # assume win32 has quicktime, dont convert
if path.lower().endswith('.gif'):
path_to = path[:-3] + 'png'
@@ -1684,6 +1684,7 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry):
if len(bpymesh.tessfaces) != len(faces):
print('\tWarning: adding faces did not work! file is invalid, not adding UVs or vcolors')
+ bpymesh.update()
return bpymesh, ccw
# Apply UVs if we have them