Added option to enable and disable export of shape keys

This commit is contained in:
Sergey Lapin 2014-09-04 17:05:28 +04:00
parent a3a35702b4
commit c122752915
2 changed files with 5 additions and 1 deletions

View file

@ -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):

View file

@ -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