Skip to content

Commit 8a310a3

Browse files
committed
fix error when using space range switch onlykeyframes option #501
1 parent 48d1ed9 commit 8a310a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

release/scripts/mgear/core/anim_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1990,14 +1990,14 @@ def bakeAnimation(
19901990
for i, x in enumerate(range(startFrame, endFrame + 1)):
19911991
world_transform_data_frame = []
19921992
if onlyKeyframes and x not in keyframeList:
1993+
world_transform_data.append([])
19931994
continue
19941995

19951996
pm.currentTime(x)
19961997
for j, n in enumerate(val_src_nodes):
19971998
world_transform_data_frame.append(transform.get_world_transform_data(n))
19981999

19992000
world_transform_data.append(world_transform_data_frame)
2000-
20012001
# delete animation in the space switch channel and destination ctrls
20022002
pm.cutKey(key_dst_nodes, at=channels, time=(startFrame, endFrame))
20032003
pm.cutKey(switch_attr_name, time=(startFrame, endFrame))

0 commit comments

Comments
 (0)