diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-13 17:45:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-13 17:45:40 +0400 |
commit | 29d6fb8307a6cc3d9d60f1d4518ea83144b93578 (patch) | |
tree | 1c3a816d3b283b835e89404044ded0a16e4a960a /io_scene_x3d/import_x3d.py | |
parent | 46aca8503200f49be933884368ec41c93d7f3a7c (diff) |
fix for x3d failing to load meshes when some faces were invalid.
Diffstat (limited to 'io_scene_x3d/import_x3d.py')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 3 |
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 |