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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user