Fix T89259: GPencil Duplicate point doesn't work for last point

The loop was checking the len of the island, but if the island started in the last point the copy was not executed.
This commit is contained in:
Antonio Vazquez 2021-06-18 18:16:30 +02:00
parent b6030711a2
commit 8a048593ca
Notes: blender-bot 2023-02-13 18:21:47 +01:00
Referenced by issue #89259, Grease Pencil: Duplicate point doesn't work for last point in stroke
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@ static void gpencil_duplicate_points(bGPdata *gpd,
start_idx = i;
}
}
else {
if ((start_idx != -1) || (start_idx == gps->totpoints - 1)) {
size_t len = 0;
/* is this the end of current island yet?