Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_paint.c
| Show First 20 Lines • Show All 2,122 Lines • ▼ Show 20 Lines | for (bGPDlayer *gpl = p->gpd->layers.first; gpl; gpl = gpl->next) { | ||||
| * as it is only really useful for doing | * as it is only really useful for doing | ||||
| * paintbuffer drawing | * paintbuffer drawing | ||||
| */ | */ | ||||
| } | } | ||||
| /* Ensure this gets set... */ | /* Ensure this gets set... */ | ||||
| p->gpf = p->gpl->actframe; | p->gpf = p->gpl->actframe; | ||||
| /* Restrict eraser to only affecting selected strokes, if the "selection mask" is on | |||||
| * (though this is only available in editmode) | |||||
| */ | |||||
| if (p->gpd->flag & GP_DATA_STROKE_EDITMODE) { | |||||
| if (ts->gp_sculpt.flag & GP_SCULPT_SETT_FLAG_SELECT_MASK) { | |||||
| p->flags |= GP_PAINTFLAG_SELECTMASK; | |||||
| } | |||||
| } | |||||
| if (has_layer_to_erase == false) { | if (has_layer_to_erase == false) { | ||||
| p->status = GP_STATUS_ERROR; | p->status = GP_STATUS_ERROR; | ||||
| return; | return; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| /* Drawing Modes - Add a new frame if needed on the active layer */ | /* Drawing Modes - Add a new frame if needed on the active layer */ | ||||
| short add_frame_mode; | short add_frame_mode; | ||||
| ▲ Show 20 Lines • Show All 1,769 Lines • Show Last 20 Lines | |||||