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:
Diffstat (limited to 'source/blender/src/gpencil.c')
-rw-r--r--source/blender/src/gpencil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/gpencil.c b/source/blender/src/gpencil.c
index fa502a1af59..c7e453c416c 100644
--- a/source/blender/src/gpencil.c
+++ b/source/blender/src/gpencil.c
@@ -702,6 +702,8 @@ void gpencil_delete_laststroke (bGPdata *gpd)
bGPDlayer *gpl= gpencil_layer_getactive(gpd);
bGPDframe *gpf= gpencil_layer_getframe(gpl, CFRA, 0);
+ if (gpf->framenum != CFRA) return;
+
gpencil_frame_delete_laststroke(gpf, gpl);
}