Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-01-18 02:52:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-18 02:55:53 +0300
commit235f578a0d21191cf4914652e8cfc5608fc1e218 (patch)
tree12df1100a4a0072ef82caf83966c9433ee74aaec /source/blender/editors/mesh
parent07aed404cfb2759f97c60b9f64d8a9392dabaf1a (diff)
Loop Cut: Allow mouse placement w/ numeric input
D2973 by @cyaoeu
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_loopcut.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_loopcut.c b/source/blender/editors/mesh/editmesh_loopcut.c
index b9192f58a1b..5d4f6242e4f 100644
--- a/source/blender/editors/mesh/editmesh_loopcut.c
+++ b/source/blender/editors/mesh/editmesh_loopcut.c
@@ -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);