Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_draw.c
| Show First 20 Lines • Show All 546 Lines • ▼ Show 20 Lines | static bool find_prev_next_keyframes(struct bContext *C, int *nextfra, int *prevfra) | ||||
| /* seed up dummy dopesheet context with flags to perform necessary filtering */ | /* seed up dummy dopesheet context with flags to perform necessary filtering */ | ||||
| if ((scene->flag & SCE_KEYS_NO_SELONLY) == 0) { | if ((scene->flag & SCE_KEYS_NO_SELONLY) == 0) { | ||||
| /* only selected channels are included */ | /* only selected channels are included */ | ||||
| ads.filterflag |= ADS_FILTER_ONLYSEL; | ads.filterflag |= ADS_FILTER_ONLYSEL; | ||||
| } | } | ||||
| /* populate tree with keyframe nodes */ | /* populate tree with keyframe nodes */ | ||||
| scene_to_keylist(&ads, scene, &keys, NULL); | scene_to_keylist(&ads, scene, &keys, NULL); | ||||
| gpencil_to_keylist(&ads, scene->gpd, &keys); | gpencil_to_keylist(&ads, scene->gpd, &keys, false); | ||||
| if (ob) { | if (ob) { | ||||
| ob_to_keylist(&ads, ob, &keys, NULL); | ob_to_keylist(&ads, ob, &keys, NULL); | ||||
| gpencil_to_keylist(&ads, ob->gpd, &keys); | gpencil_to_keylist(&ads, ob->data, &keys, false); | ||||
| } | } | ||||
| if (mask) { | if (mask) { | ||||
| MaskLayer *masklay = BKE_mask_layer_active(mask); | MaskLayer *masklay = BKE_mask_layer_active(mask); | ||||
| mask_to_keylist(&ads, masklay, &keys); | mask_to_keylist(&ads, masklay, &keys); | ||||
| } | } | ||||
| /* build linked-list for searching */ | /* build linked-list for searching */ | ||||
| ▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines | |||||