Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-06 19:48:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-06 19:48:11 +0400
commit1dc78bc5619177d875660ba071026b72a4ab9726 (patch)
treea2e4ed8704aff413c90cde0cd428e5d8443c1cfe /io_scene_fbx
parent02158e4b98588d3175f188b9f4697aa0d1eb88a6 (diff)
fix for shape key check failing on metaballs
Diffstat (limited to 'io_scene_fbx')
-rw-r--r--io_scene_fbx/export_fbx.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py
index a56427ea..6e940067 100644
--- a/io_scene_fbx/export_fbx.py
+++ b/io_scene_fbx/export_fbx.py
@@ -1320,7 +1320,9 @@ def save_single(operator, scene, filepath="",
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