Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c2
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?