Commit: 8a048593cafe714489cdd9d56964a941a3624b65 Author: Antonio Vazquez Date: Fri Jun 18 18:16:30 2021 +0200 Branches: master https://developer.blender.org/rB8a048593cafe714489cdd9d56964a941a3624b65
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. =================================================================== M source/blender/editors/gpencil/gpencil_edit.c =================================================================== 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? _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs