diff options
author | Sergey Lapin <slapin@ossfans.org> | 2014-09-04 17:05:28 +0400 |
---|---|---|
committer | Sergey Lapin <slapin@ossfans.org> | 2014-09-17 20:20:19 +0400 |
commit | c1227529150b4d9c862865c778b86930afcc4967 (patch) | |
tree | 14bf20b1c553a31bb411bc311c8a345de6173bbb /tools/export/blender25 | |
parent | a3a35702b4fd8a3cf6873731d13eac288cf76fbc (diff) |
Added option to enable and disable export of shape keys
Diffstat (limited to 'tools/export/blender25')
-rw-r--r-- | tools/export/blender25/io_scene_dae/__init__.py | 4 | ||||
-rw-r--r-- | tools/export/blender25/io_scene_dae/export_dae.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/export/blender25/io_scene_dae/__init__.py b/tools/export/blender25/io_scene_dae/__init__.py index 39d8e94a53..fe8a383383 100644 --- a/tools/export/blender25/io_scene_dae/__init__.py +++ b/tools/export/blender25/io_scene_dae/__init__.py @@ -126,6 +126,10 @@ class ExportDAE(bpy.types.Operator, ExportHelper): default=True, options={'HIDDEN'}, ) + export_shapekeys = BoolProperty( + name="Export Shape Keys", + default=False, + ) @property def check_extension(self): diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py index a66bcbb5df..6c4789c152 100644 --- a/tools/export/blender25/io_scene_dae/export_dae.py +++ b/tools/export/blender25/io_scene_dae/export_dae.py @@ -934,7 +934,7 @@ class DaeExporter: if shapename==None: for x in node.children: self.export_node(x,il) - if node.type=="MESH": + if node.type=="MESH" and self.config["export_shapekeys"]: for k in range(0,len(node.data.shape_keys.key_blocks)): shape = node.data.shape_keys.key_blocks[k] shape.value = 1.0 |