diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-12-11 17:38:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-12-11 17:38:33 +0300 |
commit | 54f7bb45829565b47764d351b5e55d7ae3f2c420 (patch) | |
tree | f66d9e1e530aef2007bfda84665ab3b0a451f64a /source/blender/editors/mesh | |
parent | 1218b3fceb4b5591d641597797c07e46f58df1c0 (diff) |
Fix for inset when accessed from spacebar search
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_inset.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_inset.c b/source/blender/editors/mesh/editmesh_inset.c index afe52ec69f4..6fd4203e085 100644 --- a/source/blender/editors/mesh/editmesh_inset.c +++ b/source/blender/editors/mesh/editmesh_inset.c @@ -373,10 +373,12 @@ static int edbm_inset_modal(bContext *C, wmOperator *op, const wmEvent *event) case LEFTMOUSE: case PADENTER: case RETKEY: - edbm_inset_calc(op); - edbm_inset_exit(C, op); - return OPERATOR_FINISHED; - + if (event->val == KM_PRESS) { + edbm_inset_calc(op); + edbm_inset_exit(C, op); + return OPERATOR_FINISHED; + } + break; case LEFTSHIFTKEY: case RIGHTSHIFTKEY: if (event->val == KM_PRESS) { |