fix: set key interpolation

This commit is contained in:
stysmmaker 2021-06-12 11:18:11 -04:00
parent 4f95b90b4d
commit 3327dc5911
Signed by: mmaker
GPG Key ID: CCE79B8FEDA40FB2

View File

@ -131,6 +131,8 @@ class FCurveHandlePasteValue(bpy.types.Operator):
for i in selected_keys: for i in selected_keys:
if (i < len(keys) - 1): if (i < len(keys) - 1):
new_handles = generate_new_handles(keys[i], keys[i + 1]) new_handles = generate_new_handles(keys[i], keys[i + 1])
keys[i].interpolation = 'BEZIER'
keys[i].interpolation = 'BEZIER'
keys[i].handle_right_type = 'FREE' keys[i].handle_right_type = 'FREE'
keys[i + 1].handle_left_type = 'FREE' keys[i + 1].handle_left_type = 'FREE'
keys[i].handle_right = new_handles[0] keys[i].handle_right = new_handles[0]