Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_brush.c
| Show First 20 Lines • Show All 1,480 Lines • ▼ Show 20 Lines | else { | ||||
| */ | */ | ||||
| for (i = 0; (i + 1) < gps->totpoints; i++) { | for (i = 0; (i + 1) < gps->totpoints; i++) { | ||||
| /* Get points to work with */ | /* Get points to work with */ | ||||
| pt1 = gps->points + i; | pt1 = gps->points + i; | ||||
| pt2 = gps->points + i + 1; | pt2 = gps->points + i + 1; | ||||
| /* Skip if neither one is selected | /* Skip if neither one is selected | ||||
| * (and we are only allowed to edit/consider selected points) */ | * (and we are only allowed to edit/consider selected points) */ | ||||
| if ((gso->settings->flag & GP_SCULPT_SETT_FLAG_SELECT_MASK) && (!gso->is_weight_mode)) { | if ((GPENCIL_ANY_SCULPT_MASK(gso->settings->flag)) && (!gso->is_weight_mode)) { | ||||
| if (!(pt1->flag & GP_SPOINT_SELECT) && !(pt2->flag & GP_SPOINT_SELECT)) { | if (!(pt1->flag & GP_SPOINT_SELECT) && !(pt2->flag & GP_SPOINT_SELECT)) { | ||||
| include_last = false; | include_last = false; | ||||
| continue; | continue; | ||||
| } | } | ||||
| } | } | ||||
| bGPDspoint npt; | bGPDspoint npt; | ||||
| gp_point_to_parent_space(pt1, diff_mat, &npt); | gp_point_to_parent_space(pt1, diff_mat, &npt); | ||||
| gp_point_to_xy(gsc, gps, &npt, &pc1[0], &pc1[1]); | gp_point_to_xy(gsc, gps, &npt, &pc1[0], &pc1[1]); | ||||
| ▲ Show 20 Lines • Show All 685 Lines • Show Last 20 Lines | |||||