diff options
author | Sergey Lapin <slapin@ossfans.org> | 2014-09-04 17:08:25 +0400 |
---|---|---|
committer | Sergey Lapin <slapin@ossfans.org> | 2014-09-17 20:20:19 +0400 |
commit | e0a75f0f12787167e4178cbe1a9527b80e2d7f76 (patch) | |
tree | 01dbdf4e797d61d218b954e2e77ae24ec2f28b7f /tools/export/blender25 | |
parent | c1227529150b4d9c862865c778b86930afcc4967 (diff) |
Recover shape key state
Diffstat (limited to 'tools/export/blender25')
-rw-r--r-- | tools/export/blender25/io_scene_dae/export_dae.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py index 6c4789c152..38c5c3b723 100644 --- a/tools/export/blender25/io_scene_dae/export_dae.py +++ b/tools/export/blender25/io_scene_dae/export_dae.py @@ -937,6 +937,7 @@ class DaeExporter: 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] + oldval = shape.value shape.value = 1.0 node.active_shape_key_index = k p = node.data @@ -945,6 +946,7 @@ class DaeExporter: self.export_node(node,il,shape.name) node.data = p node.data.update() + shape.value = oldval il-=1 self.writel(S_NODES,il,'</node>') |