Added option to enable and disable export of shape keys
This commit is contained in:
parent
a3a35702b4
commit
c122752915
@ -126,6 +126,10 @@ class ExportDAE(bpy.types.Operator, ExportHelper):
|
|||||||
default=True,
|
default=True,
|
||||||
options={'HIDDEN'},
|
options={'HIDDEN'},
|
||||||
)
|
)
|
||||||
|
export_shapekeys = BoolProperty(
|
||||||
|
name="Export Shape Keys",
|
||||||
|
default=False,
|
||||||
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def check_extension(self):
|
def check_extension(self):
|
||||||
|
@ -934,7 +934,7 @@ class DaeExporter:
|
|||||||
if shapename==None:
|
if shapename==None:
|
||||||
for x in node.children:
|
for x in node.children:
|
||||||
self.export_node(x,il)
|
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)):
|
for k in range(0,len(node.data.shape_keys.key_blocks)):
|
||||||
shape = node.data.shape_keys.key_blocks[k]
|
shape = node.data.shape_keys.key_blocks[k]
|
||||||
shape.value = 1.0
|
shape.value = 1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user