summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/export/blender25/io_scene_dae/__init__.py4
-rw-r--r--tools/export/blender25/io_scene_dae/export_dae.py2
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