Fix T92952: Knife inconsistent angle printout

Knife could display incorrect snapping angle printout in
header/footer because it was not always updated after angle snapping
calculations.
This commit is contained in:
Cian Jinks 2022-06-01 21:20:53 +01:00
parent 129ea355c8
commit 68150b666c
Notes: blender-bot 2023-02-13 17:10:38 +01:00
Referenced by issue #92952, Knife tool angle constraint printout is unsynchronized with viewport drawing
1 changed files with 2 additions and 0 deletions

View File

@ -4672,6 +4672,7 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event)
case MOUSEMOVE: /* Mouse moved somewhere to select another loop. */
if (kcd->mode != MODE_PANNING) {
knifetool_update_mval_i(kcd, event->mval);
knife_update_header(C, op, kcd);
if (kcd->is_drag_hold) {
if (kcd->totlinehit >= 2) {
@ -4754,6 +4755,7 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event)
/* We don't really need to update mval,
* but this happens to be the best way to refresh at the moment. */
knifetool_update_mval_i(kcd, event->mval);
knife_update_header(C, op, kcd);
}
/* Keep going until the user confirms. */