Fix knife tool showing axis in the wrong direction before cursor motion

Changing constraints required cursor motion to refresh the display.
This commit is contained in:
Campbell Barton
2025-06-24 15:53:47 +10:00
parent 7e2926233d
commit 0be817a01c

View File

@@ -4531,6 +4531,10 @@ static wmOperatorStatus knifetool_modal(bContext *C, wmOperator *op, const wmEve
}
kcd->axis_constrained = (kcd->constrain_axis != KNF_CONSTRAIN_AXIS_NONE);
knifetool_disable_angle_snapping(kcd);
/* Needed so changes to constraints are re-evaluated without any cursor motion. */
knifetool_update_mval(kcd, mval);
do_refresh = true;
}
}