[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2397] trunk/py/scripts/addons/ io_scene_fbx/export_fbx.py: fix for shape key check failing on metaballs
Campbell Barton
ideasman42 at gmail.com
Thu Oct 6 17:48:11 CEST 2011
Revision: 2397
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2397
Author: campbellbarton
Date: 2011-10-06 15:48:11 +0000 (Thu, 06 Oct 2011)
Log Message:
-----------
fix for shape key check failing on metaballs
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_fbx/export_fbx.py
Modified: trunk/py/scripts/addons/io_scene_fbx/export_fbx.py
===================================================================
--- trunk/py/scripts/addons/io_scene_fbx/export_fbx.py 2011-10-06 14:27:22 UTC (rev 2396)
+++ trunk/py/scripts/addons/io_scene_fbx/export_fbx.py 2011-10-06 15:48:11 UTC (rev 2397)
@@ -1320,7 +1320,9 @@
do_materials = bool(my_mesh.blenMaterials)
do_textures = bool(my_mesh.blenTextures)
do_uvs = bool(me.uv_textures)
- do_shapekeys = bool(my_mesh.blenObject.data.shape_keys and len(my_mesh.blenObject.data.vertices) == len(me.vertices))
+ do_shapekeys = (my_mesh.blenObject.type == 'MESH' and
+ my_mesh.blenObject.data.shape_keys and
+ len(my_mesh.blenObject.data.vertices) == len(me.vertices))
fw('\n\tModel: "Model::%s", "Mesh" {' % my_mesh.fbxName)
fw('\n\t\tVersion: 232') # newline is added in write_object_props
More information about the Bf-extensions-cvs
mailing list