diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-06-18 19:16:30 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-06-18 19:16:38 +0300 |
commit | 8a048593cafe714489cdd9d56964a941a3624b65 (patch) | |
tree | 831619fc56056cb13343fb4cbe27c30d9e66a5f3 /source/blender/editors | |
parent | b6030711a24f154de9c1c7287cf91d3cde3721c8 (diff) |
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 02b9fb6549b..21fa3ad3967 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -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? |