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