GPencil: Fix unreported Close Stroke operator did not select new points

When use the close stroke, the new created points were not addedd to the
selection.
This commit is contained in:
Antonio Vazquez 2022-10-11 12:04:03 +02:00 committed by Philipp Oeser
parent 3d7f298e9a
commit 07ba515b21
Notes: blender-bot 2023-02-14 08:39:23 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
1 changed files with 4 additions and 0 deletions

View File

@ -1855,6 +1855,10 @@ bool BKE_gpencil_stroke_close(bGPDstroke *gps)
pt->strength = interpf(pt2->strength, pt1->strength, step);
pt->flag = 0;
interp_v4_v4v4(pt->vert_color, pt1->vert_color, pt2->vert_color, step);
/* Set point as selected. */
if (gps->flag & GP_STROKE_SELECT) {
pt->flag |= GP_SPOINT_SELECT;
}
/* Set weights. */
if (gps->dvert != nullptr) {