Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_select.c
| Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | typedef enum eGP_SelectGrouped { | ||||
| /* TODO: All with same appearance - color/opacity/volumetric/fills ? */ | /* TODO: All with same appearance - color/opacity/volumetric/fills ? */ | ||||
| } eGP_SelectGrouped; | } eGP_SelectGrouped; | ||||
| /* ----------------------------------- */ | /* ----------------------------------- */ | ||||
| /* On each visible layer, check for selected strokes - if found, select all others */ | /* On each visible layer, check for selected strokes - if found, select all others */ | ||||
| static void gp_select_same_layer(bContext *C) | static void gp_select_same_layer(bContext *C) | ||||
| { | { | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Scene *scene = CTX_data_scene(C); | ||||
| int cfra_eval = (int)DEG_get_ctime(depsgraph); | int cfra_eval = CFRA; | ||||
| CTX_DATA_BEGIN (C, bGPDlayer *, gpl, editable_gpencil_layers) { | CTX_DATA_BEGIN (C, bGPDlayer *, gpl, editable_gpencil_layers) { | ||||
| bGPDframe *gpf = BKE_gpencil_layer_getframe(gpl, cfra_eval, GP_GETFRAME_USE_PREV); | bGPDframe *gpf = BKE_gpencil_layer_getframe(gpl, cfra_eval, GP_GETFRAME_USE_PREV); | ||||
| bGPDstroke *gps; | bGPDstroke *gps; | ||||
| bool found = false; | bool found = false; | ||||
| if (gpf == NULL) { | if (gpf == NULL) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 1,183 Lines • Show Last 20 Lines | |||||