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:
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
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue