Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_context.c
| Show First 20 Lines • Show All 860 Lines • ▼ Show 20 Lines | if (BKE_gpencil_layer_is_editable(gpl) && (gpl->actframe)) { | ||||
| init_gpf = gpl->frames.first; | init_gpf = gpl->frames.first; | ||||
| } | } | ||||
| for (gpf = init_gpf; gpf; gpf = gpf->next) { | for (gpf = init_gpf; gpf; gpf = gpf->next) { | ||||
| if ((gpf == gpl->actframe) || ((gpf->flag & GP_FRAME_SELECT) && (is_multiedit))) { | if ((gpf == gpl->actframe) || ((gpf->flag & GP_FRAME_SELECT) && (is_multiedit))) { | ||||
| LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) { | LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) { | ||||
| if (ED_gpencil_stroke_can_use_direct(area, gps)) { | if (ED_gpencil_stroke_can_use_direct(area, gps)) { | ||||
| /* check if the color is editable */ | /* check if the color is editable */ | ||||
| if (ED_gpencil_stroke_color_use(obact, gpl, gps) == false) { | if (ED_gpencil_stroke_material_editable(obact, gpl, gps) == false) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| CTX_data_list_add(result, &gpd->id, &RNA_GPencilStroke, gps); | CTX_data_list_add(result, &gpd->id, &RNA_GPencilStroke, gps); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* if not multiedit out of loop */ | /* if not multiedit out of loop */ | ||||
| ▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines | |||||