parent
29623d4c3b
commit
3c5ccf422a
|
@ -126,7 +126,7 @@ def bake_cycle(on_selection=True):
|
|||
# C.scene.frame_current = org_frame
|
||||
# detect last key in contact
|
||||
|
||||
|
||||
# FIXME: need to use action offset fc instead of eval_time
|
||||
def step_path():
|
||||
'''Step the path anim of the curve to constant'''
|
||||
print(fn.helper())
|
||||
|
@ -213,7 +213,7 @@ class UAC_OT_bake_cycle_and_step(bpy.types.Operator):
|
|||
if curve:
|
||||
act = fn.get_obj_action(curve.data)
|
||||
if act:
|
||||
timef = next((fcu for fcu in act.fcurves if fcu.data_path == 'eval_time'), None)
|
||||
timef = next((fc for fc in act.fcurves if fc.data_path.endswith('.offset') and 'constraint' in fc.data_path), None)
|
||||
if timef:
|
||||
keys_ct = len(timef.keyframe_points)
|
||||
if keys_ct > 2:
|
||||
|
|
Loading…
Reference in New Issue