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
path: root/source
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-03-28 14:11:00 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-03-28 14:11:07 +0300
commite6dfe570cc00fbacf41d66e55fcf2e1b195eb780 (patch)
tree763c7c1f136b331fb95358f74a6c389ab3cd8e5a /source
parent555e7c20912f221c68edb03d62bdbb5516ba4313 (diff)
Fix T96828: GPencil primitives handlers not working
Following the logic is not necessary to check the mouse button because the status has changed before.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gpencil/gpencil_primitive.c2
1 files changed, 1 insertions, 1 deletions
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);
}