mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 18:43:29 -05:00
Recover shape key state
This commit is contained in:
parent
c122752915
commit
e0a75f0f12
1 changed files with 2 additions and 0 deletions
|
@ -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>')
|
||||
|
||||
|
|
Loading…
Reference in a new issue