Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_vertex_paint.c
| Show First 20 Lines • Show All 913 Lines • ▼ Show 20 Lines | for (i = 0; (i + 1) < gps->totpoints; i++) { | ||||
| */ | */ | ||||
| if (gpencil_stroke_inside_circle(gso->mval, radius, pc1[0], pc1[1], pc2[0], pc2[1])) { | if (gpencil_stroke_inside_circle(gso->mval, radius, pc1[0], pc1[1], pc2[0], pc2[1])) { | ||||
| /* To each point individually... */ | /* To each point individually... */ | ||||
| pt = &gps->points[i]; | pt = &gps->points[i]; | ||||
| pt_active = pt->runtime.pt_orig; | pt_active = pt->runtime.pt_orig; | ||||
| if (pt_active != NULL) { | if (pt_active != NULL) { | ||||
| /* If masked and the point is not selected, skip it. */ | /* If masked and the point is not selected, skip it. */ | ||||
| if ((GPENCIL_ANY_VERTEX_MASK(gso->mask)) && | if (GPENCIL_ANY_VERTEX_MASK(gso->mask) && | ||||
| ((pt_active->flag & GP_SPOINT_SELECT) == 0)) { | ((pt_active->flag & GP_SPOINT_SELECT) == 0)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| index = (pt->runtime.pt_orig) ? pt->runtime.idx_orig : i; | index = (pt->runtime.pt_orig) ? pt->runtime.idx_orig : i; | ||||
| hit = true; | hit = true; | ||||
| gpencil_save_selected_point(gso, gps_active, index, pc1); | gpencil_save_selected_point(gso, gps_active, index, pc1); | ||||
| saved = true; | saved = true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 538 Lines • Show Last 20 Lines | |||||