GPencil: Fix Stroke keeps selected when duplicate (unreported)

When use `Shift+D` the original stroke was unselected only at stroke level, but not at point level and the edit line kept selected.
This commit is contained in:
Antonio Vazquez
2019-12-05 13:44:37 +01:00
parent d21a8dcae2
commit 70b3469c0e

View File

@@ -770,6 +770,11 @@ static int gp_duplicate_exec(bContext *C, wmOperator *op)
/* deselect original stroke, or else the originals get moved too
* (when using the copy + move macro)
*/
bGPDspoint *pt;
int i;
for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) {
pt->flag &= ~GP_SPOINT_SELECT;
}
gps->flag &= ~GP_STROKE_SELECT;
}
}