Loop Cut: Allow mouse placement w/ numeric input

D2973 by @cyaoeu
This commit is contained in:
Campbell Barton 2018-01-18 10:52:51 +11:00
parent 07aed404cf
commit 235f578a0d
Notes: blender-bot 2023-02-14 06:17:21 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 9 additions and 1 deletions

View File

@ -740,7 +740,15 @@ static int loopcut_modal(bContext *C, wmOperator *op, const wmEvent *event)
handled = true;
break;
case MOUSEMOVE: /* mouse moved somewhere to select another loop */
if (!has_numinput) {
/* This is normally disabled for all modal operators.
* This is an exception since mouse movement doesn't relate to numeric input.
*
* If numeric input changes we'll need to add this back see: D2973 */
#if 0
if (!has_numinput)
#endif
{
lcd->vc.mval[0] = event->mval[0];
lcd->vc.mval[1] = event->mval[1];
loopcut_mouse_move(lcd, (int)lcd->cuts);