Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert.c
| Show First 20 Lines • Show All 763 Lines • ▼ Show 20 Lines | for (tRetainedKeyframe *rk = retained_keys.last; rk; rk = rk->prev) { | ||||
| /* Update keyframe... */ | /* Update keyframe... */ | ||||
| if (can_average_points) { | if (can_average_points) { | ||||
| /* TODO: update handles too? */ | /* TODO: update handles too? */ | ||||
| bezt->vec[1][1] = rk->val; | bezt->vec[1][1] = rk->val; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| /* Delete Keyframe */ | /* Delete Keyframe */ | ||||
| delete_fcurve_key(fcu, i, 0); | BKE_fcurve_delete_key(fcu, i); | ||||
| } | } | ||||
| /* Update count of how many we've deleted | /* Update count of how many we've deleted | ||||
| * - It should only matter that we're doing this for all but the last one | * - It should only matter that we're doing this for all but the last one | ||||
| */ | */ | ||||
| rk->del_count++; | rk->del_count++; | ||||
| } | } | ||||
| else { | else { | ||||
| /* Always delete - Unselected keys don't matter */ | /* Always delete - Unselected keys don't matter */ | ||||
| delete_fcurve_key(fcu, i, 0); | BKE_fcurve_delete_key(fcu, i); | ||||
| } | } | ||||
| /* Stop the RK search... we've found our match now */ | /* Stop the RK search... we've found our match now */ | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,004 Lines • Show Last 20 Lines | |||||