Fix T100277: Grease pencil lines don't start at click-start

Regression in b8960267dd.
This commit is contained in:
Campbell Barton 2022-08-09 13:52:27 +10:00
parent 228f7cb5ce
commit 90b2ed6c4b
Notes: blender-bot 2023-02-14 06:00:46 +01:00
Referenced by issue #100277, Regression: Grease pencil lines don't start where i click
1 changed files with 1 additions and 1 deletions

View File

@ -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);