Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/keyframes_edit.c
| Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | static short ob_keyframes_loop(KeyframeEditData *ked, | ||||
| dummychan.id = &ob->id; | dummychan.id = &ob->id; | ||||
| dummychan.adt = ob->adt; | dummychan.adt = ob->adt; | ||||
| ac.ads = ads; | ac.ads = ads; | ||||
| ac.data = &dummychan; | ac.data = &dummychan; | ||||
| ac.datatype = ANIMCONT_CHANNEL; | ac.datatype = ANIMCONT_CHANNEL; | ||||
| /* get F-Curves to take keyframes from */ | /* get F-Curves to take keyframes from */ | ||||
| filter = ANIMFILTER_DATA_VISIBLE; /* curves only */ | filter = ANIMFILTER_DATA_VISIBLE | ANIMFILTER_FCURVESONLY; | ||||
| ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, ac.datatype); | ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, ac.datatype); | ||||
| /* Loop through each F-Curve, applying the operation as required, | /* Loop through each F-Curve, applying the operation as required, | ||||
| * but stopping on the first one. */ | * but stopping on the first one. */ | ||||
| for (ale = anim_data.first; ale; ale = ale->next) { | for (ale = anim_data.first; ale; ale = ale->next) { | ||||
| if (ANIM_fcurve_keyframes_loop(ked, (FCurve *)ale->data, key_ok, key_cb, fcu_cb)) { | if (ANIM_fcurve_keyframes_loop(ked, (FCurve *)ale->data, key_ok, key_cb, fcu_cb)) { | ||||
| ret = 1; | ret = 1; | ||||
| break; | break; | ||||
| Show All 32 Lines | static short scene_keyframes_loop(KeyframeEditData *ked, | ||||
| dummychan.id = &sce->id; | dummychan.id = &sce->id; | ||||
| dummychan.adt = sce->adt; | dummychan.adt = sce->adt; | ||||
| ac.ads = ads; | ac.ads = ads; | ||||
| ac.data = &dummychan; | ac.data = &dummychan; | ||||
| ac.datatype = ANIMCONT_CHANNEL; | ac.datatype = ANIMCONT_CHANNEL; | ||||
| /* get F-Curves to take keyframes from */ | /* get F-Curves to take keyframes from */ | ||||
| filter = ANIMFILTER_DATA_VISIBLE; /* curves only */ | filter = ANIMFILTER_DATA_VISIBLE | ANIMFILTER_FCURVESONLY; | ||||
| ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, ac.datatype); | ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, ac.datatype); | ||||
| /* Loop through each F-Curve, applying the operation as required, | /* Loop through each F-Curve, applying the operation as required, | ||||
| * but stopping on the first one. */ | * but stopping on the first one. */ | ||||
| for (ale = anim_data.first; ale; ale = ale->next) { | for (ale = anim_data.first; ale; ale = ale->next) { | ||||
| if (ANIM_fcurve_keyframes_loop(ked, (FCurve *)ale->data, key_ok, key_cb, fcu_cb)) { | if (ANIM_fcurve_keyframes_loop(ked, (FCurve *)ale->data, key_ok, key_cb, fcu_cb)) { | ||||
| ret = 1; | ret = 1; | ||||
| break; | break; | ||||
| ▲ Show 20 Lines • Show All 1,412 Lines • Show Last 20 Lines | |||||