Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 2,563 Lines • ▼ Show 20 Lines | static int keyframe_jump_exec(bContext *C, wmOperator *op) | ||||
| /* 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); | |||||
| 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); | |||||
| if (ob->type == OB_GPENCIL) { | |||||
| const bool active = !(scene->flag & SCE_KEYS_NO_SELONLY); | |||||
| gpencil_to_keylist(&ads, ob->data, &keys, active); | |||||
| } | |||||
| } | } | ||||
| { | { | ||||
| Mask *mask = CTX_data_edit_mask(C); | Mask *mask = CTX_data_edit_mask(C); | ||||
| 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); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,349 Lines • Show Last 20 Lines | |||||