Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/pose_lib.c
| Show All 18 Lines | |||||
| #include "DNA_anim_types.h" | #include "DNA_anim_types.h" | ||||
| #include "DNA_armature_types.h" | #include "DNA_armature_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "BKE_action.h" | #include "BKE_action.h" | ||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| #include "BKE_armature.h" | #include "BKE_armature.h" | ||||
| #include "BKE_fcurve.h" | |||||
| #include "BKE_idprop.h" | #include "BKE_idprop.h" | ||||
| #include "BKE_lib_id.h" | #include "BKE_lib_id.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_report.h" | #include "BKE_report.h" | ||||
| ▲ Show 20 Lines • Show All 575 Lines • ▼ Show 20 Lines | static int poselib_remove_exec(bContext *C, wmOperator *op) | ||||
| for (fcu = act->curves.first; fcu; fcu = fcu->next) { | for (fcu = act->curves.first; fcu; fcu = fcu->next) { | ||||
| BezTriple *bezt; | BezTriple *bezt; | ||||
| uint i; | uint i; | ||||
| if (fcu->bezt) { | if (fcu->bezt) { | ||||
| for (i = 0, bezt = fcu->bezt; i < fcu->totvert; i++, bezt++) { | for (i = 0, bezt = fcu->bezt; i < fcu->totvert; i++, bezt++) { | ||||
| /* check if remove */ | /* check if remove */ | ||||
| if (IS_EQF(bezt->vec[1][0], (float)marker->frame)) { | if (IS_EQF(bezt->vec[1][0], (float)marker->frame)) { | ||||
| delete_fcurve_key(fcu, i, 1); | BKE_fcurve_delete_key(fcu, i); | ||||
| BKE_fcurve_handles_recalc(fcu); | |||||
sybren: missing call to `BKE_fcurve_handles_recalc(fcu);` | |||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* remove poselib from list */ | /* remove poselib from list */ | ||||
| BLI_freelinkN(&act->markers, marker); | BLI_freelinkN(&act->markers, marker); | ||||
| ▲ Show 20 Lines • Show All 1,276 Lines • Show Last 20 Lines | |||||
missing call to BKE_fcurve_handles_recalc(fcu);