Added option to enable and disable export of shape keys
This commit is contained in:
parent
a3a35702b4
commit
c122752915
2 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue