[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4267] trunk/py/scripts/addons/ io_scene_x3d/import_x3d.py: fix for x3d failing to load meshes when some faces were invalid.

Campbell Barton ideasman42 at gmail.com
Wed Feb 13 14:45:41 CET 2013


Revision: 4267
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4267
Author:   campbellbarton
Date:     2013-02-13 13:45:40 +0000 (Wed, 13 Feb 2013)
Log Message:
-----------
fix for x3d failing to load meshes when some faces were invalid.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_x3d/import_x3d.py

Modified: trunk/py/scripts/addons/io_scene_x3d/import_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/import_x3d.py	2013-02-13 13:09:11 UTC (rev 4266)
+++ trunk/py/scripts/addons/io_scene_x3d/import_x3d.py	2013-02-13 13:45:40 UTC (rev 4267)
@@ -28,7 +28,7 @@
 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 @@
 
     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



More information about the Bf-extensions-cvs mailing list