Commit: 2b639f671f84da4ffcc13cd38b50695e39f629cc Author: Antonio Vazquez Date: Tue Nov 29 12:15:10 2022 +0100 Branches: master https://developer.blender.org/rB2b639f671f84da4ffcc13cd38b50695e39f629cc
GPencil: Create Keyframe using Eraser if Auto-key is ONn Before, the frame was not created, but now if there is a previous stroke and teh frame changed, the new keyframe is created. This is related to T102623 =================================================================== M source/blender/editors/gpencil/gpencil_paint.c =================================================================== diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index d2ed1720bf8..3b0502e4e73 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -2229,10 +2229,8 @@ static void gpencil_paint_initstroke(tGPsdata *p, * -> If there are no strokes in that frame, don't add a new empty frame */ if (gpl->actframe && gpl->actframe->strokes.first) { - if (ts->gpencil_flags & GP_TOOL_FLAG_RETAIN_LAST) { - short frame_mode = IS_AUTOKEY_ON(scene) ? GP_GETFRAME_ADD_COPY : GP_GETFRAME_USE_PREV; - gpl->actframe = BKE_gpencil_layer_frame_get(gpl, scene->r.cfra, frame_mode); - } + short frame_mode = IS_AUTOKEY_ON(scene) ? GP_GETFRAME_ADD_COPY : GP_GETFRAME_USE_PREV; + gpl->actframe = BKE_gpencil_layer_frame_get(gpl, scene->r.cfra, frame_mode); has_layer_to_erase = true; break; } _______________________________________________ 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