From 29d6fb8307a6cc3d9d60f1d4518ea83144b93578 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Wed, 13 Feb 2013 13:45:40 +0000 Subject: [PATCH] fix for x3d failing to load meshes when some faces were invalid. --- io_scene_x3d/import_x3d.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 1cfb2837c..6472f6541 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 -- GitLab