diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-09 06:52:27 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-09 06:52:27 +0300 |
commit | 90b2ed6c4b6636c3f15e7a3cf7eaf3971cc4627e (patch) | |
tree | fb63b6716deba69725b25ed0ac96ed09691090fb /source/blender/editors/gpencil | |
parent | 228f7cb5cec86d45757ae350d816e5e7c7c9123a (diff) |
Fix T100277: Grease pencil lines don't start at click-start
Regression in b8960267dd51f9108b3b49e9b762e6b4d35ae1dc.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_primitive.c | 2 |
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 befff611d58..70f12151fdd 100644 --- a/source/blender/editors/gpencil/gpencil_primitive.c +++ b/source/blender/editors/gpencil/gpencil_primitive.c @@ -1107,7 +1107,7 @@ static void gpencil_primitive_update(bContext *C, wmOperator *op, tGPDprimitive /* Initialize mouse points. */ static void gpencil_primitive_interaction_begin(tGPDprimitive *tgpi, const wmEvent *event) { - copy_v2fl_v2i(tgpi->mval, event->mval); + WM_event_drag_start_mval_fl(event, tgpi->region, tgpi->mval); copy_v2_v2(tgpi->origin, tgpi->mval); copy_v2_v2(tgpi->start, tgpi->mval); copy_v2_v2(tgpi->end, tgpi->mval); |