Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_graph.c
| Show First 20 Lines • Show All 1,003 Lines • ▼ Show 20 Lines | for (ale = anim_data.first; ale; ale = ale->next) { | ||||
| * 2) canceled == 0 -> user confirmed the transform, | * 2) canceled == 0 -> user confirmed the transform, | ||||
| * so duplicates should be removed | * so duplicates should be removed | ||||
| * 3) canceled + duplicate -> user canceled the transform, | * 3) canceled + duplicate -> user canceled the transform, | ||||
| * but we made duplicates, so get rid of these | * but we made duplicates, so get rid of these | ||||
| */ | */ | ||||
| if ((sipo->flag & SIPO_NOTRANSKEYCULL) == 0 && ((canceled == 0) || (duplicate))) { | if ((sipo->flag & SIPO_NOTRANSKEYCULL) == 0 && ((canceled == 0) || (duplicate))) { | ||||
| if (adt) { | if (adt) { | ||||
| ANIM_nla_mapping_apply_fcurve(adt, fcu, 0, 0); | ANIM_nla_mapping_apply_fcurve(adt, fcu, 0, 0); | ||||
| posttrans_fcurve_clean(fcu, BEZT_FLAG_TEMP_TAG, use_handle); | BKE_fcurve_merge_duplicate_keys(fcu, BEZT_FLAG_TEMP_TAG, use_handle); | ||||
| ANIM_nla_mapping_apply_fcurve(adt, fcu, 1, 0); | ANIM_nla_mapping_apply_fcurve(adt, fcu, 1, 0); | ||||
| } | } | ||||
| else { | else { | ||||
| posttrans_fcurve_clean(fcu, BEZT_FLAG_TEMP_TAG, use_handle); | BKE_fcurve_merge_duplicate_keys(fcu, BEZT_FLAG_TEMP_TAG, use_handle); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* free temp memory */ | /* free temp memory */ | ||||
| ANIM_animdata_freelist(&anim_data); | ANIM_animdata_freelist(&anim_data); | ||||
| } | } | ||||
| Show All 18 Lines | |||||