[Bf-blender-cvs] [a63d6a97f0a] blender-v2.93-release: Fix T88160: GPencil Remove `B` key to create Blank Keyframe in Drawing mode
Antonio Vazquez
noreply at git.blender.org
Tue May 11 10:24:50 CEST 2021
Commit: a63d6a97f0a01515896c0dcb0f7fe30a239db4e6
Author: Antonio Vazquez
Date: Mon May 10 16:34:27 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rBa63d6a97f0a01515896c0dcb0f7fe30a239db4e6
Fix T88160: GPencil Remove `B` key to create Blank Keyframe in Drawing mode
Now, we have the new `I` menu for that. The `B`keymap was part of the old code.
===================================================================
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 d072d8a35df..9bd929aa2af 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -3677,14 +3677,6 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
* is essential for ensuring that they can quickly return to that view
*/
}
- else if ((event->type == EVT_BKEY) && (event->val == KM_RELEASE)) {
- /* Add Blank Frame
- * - Since this operator is non-modal, we can just call it here, and keep going...
- * - This operator is especially useful when animating
- */
- WM_operator_name_call(C, "GPENCIL_OT_blank_frame_add", WM_OP_EXEC_DEFAULT, NULL);
- estate = OPERATOR_RUNNING_MODAL;
- }
else if ((!ELEM(p->paintmode, GP_PAINTMODE_ERASER, GP_PAINTMODE_SET_CP))) {
gpencil_guide_event_handling(C, op, event, p);
estate = OPERATOR_RUNNING_MODAL;
More information about the Bf-blender-cvs
mailing list