Fix #110722: Wrong value when starting a transformation
Caused by 5ed14e9269.
That commit accidentally removed the `copy_v2_v2_int(t->mval, mval);`
line which was responsible for initializing the value of `mval`.
This commit is contained in:
@@ -2023,14 +2023,7 @@ bool initTransform(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float2 mval;
|
initMouseInput(t, &t->mouse, t->center2d, t->mval, use_accurate);
|
||||||
if (t->flag & T_EVENT_DRAG_START) {
|
|
||||||
WM_event_drag_start_mval_fl(event, t->region, mval);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
mval = float2(event->mval);
|
|
||||||
}
|
|
||||||
initMouseInput(t, &t->mouse, t->center2d, mval, use_accurate);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
transform_mode_init(t, op, mode);
|
transform_mode_init(t, op, mode);
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||||||
mval = float2(0, 0);
|
mval = float2(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
t->mouse.imval = mval;
|
t->mval = mval;
|
||||||
|
|
||||||
t->mode_info = nullptr;
|
t->mode_info = nullptr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user