[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2135] trunk/py/scripts/addons/ io_import_scene_lwo.py: fix [#27916] Crash adding EdgeSplit/ Bevel modifier to imported lwo mesh
Campbell Barton
ideasman42 at gmail.com
Tue Jul 19 01:25:48 CEST 2011
Revision: 2135
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2135
Author: campbellbarton
Date: 2011-07-18 23:25:48 +0000 (Mon, 18 Jul 2011)
Log Message:
-----------
fix [#27916] Crash adding EdgeSplit/Bevel modifier to imported lwo mesh
Modified Paths:
--------------
trunk/py/scripts/addons/io_import_scene_lwo.py
Modified: trunk/py/scripts/addons/io_import_scene_lwo.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_lwo.py 2011-07-18 11:54:19 UTC (rev 2134)
+++ trunk/py/scripts/addons/io_import_scene_lwo.py 2011-07-18 23:25:48 UTC (rev 2135)
@@ -1193,6 +1193,12 @@
layer_data.morphs.clear()
layer_data.surf_tags.clear()
+ # We may have some invalid mesh data, See: [#27916]
+ # keep this last!
+ print("validating mesh: %r..." % me.name)
+ me.validate(verbose=1)
+ print("done!")
+
# With the objects made, setup the parents and re-adjust the locations.
for ob_key in ob_dict:
if ob_dict[ob_key][1] != -1 and ob_dict[ob_key][1] in ob_dict:
More information about the Bf-extensions-cvs
mailing list