[Bf-blender-cvs] [e6dfe570cc0] master: Fix T96828: GPencil primitives handlers not working

Antonio Vazquez noreply at git.blender.org
Mon Mar 28 13:11:13 CEST 2022


Commit: e6dfe570cc00fbacf41d66e55fcf2e1b195eb780
Author: Antonio Vazquez
Date:   Mon Mar 28 13:11:00 2022 +0200
Branches: master
https://developer.blender.org/rBe6dfe570cc00fbacf41d66e55fcf2e1b195eb780

Fix T96828: GPencil primitives handlers not working

Following the logic is not necessary to check the mouse button because the status has changed before.

===================================================================

M	source/blender/editors/gpencil/gpencil_primitive.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index 57a184b0e8d..01d433b9b2a 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -1481,7 +1481,7 @@ static void gpencil_primitive_edit_event_handling(
       break;
     }
     case MOUSEMOVE: {
-      if ((event->val == KM_PRESS) && tgpi->sel_cp != SELECT_NONE) {
+      if (tgpi->sel_cp != SELECT_NONE) {
         if (tgpi->sel_cp == SELECT_START && tgpi->tot_stored_edges == 0) {
           copy_v2_v2(tgpi->start, tgpi->mval);
         }



More information about the Bf-blender-cvs mailing list