[Bf-blender-cvs] [b4b4532ce08] blender-v2.91-release: Sculpt: use ESC key in addition to RMB to cancel eyedropper
Philipp Oeser
noreply at git.blender.org
Thu Nov 12 11:39:02 CET 2020
Commit: b4b4532ce08d10468b04c42b092ef9cff603958d
Author: Philipp Oeser
Date: Wed Nov 11 15:32:40 2020 +0100
Branches: blender-v2.91-release
https://developer.blender.org/rBb4b4532ce08d10468b04c42b092ef9cff603958d
Sculpt: use ESC key in addition to RMB to cancel eyedropper
This is more in line to other eyedropper usages throughout blender.
Affected operators:
- Sample Dyntopo detail
- Extract Face Set (as reported in T82615)
ref T82615
Maniphest Tasks: T82615
Differential Revision: https://developer.blender.org/D9531
===================================================================
M source/blender/editors/mesh/editmesh_mask_extract.c
M source/blender/editors/sculpt_paint/sculpt_detail.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_mask_extract.c b/source/blender/editors/mesh/editmesh_mask_extract.c
index 8ef1f9ee176..be9314ad2fd 100644
--- a/source/blender/editors/mesh/editmesh_mask_extract.c
+++ b/source/blender/editors/mesh/editmesh_mask_extract.c
@@ -408,7 +408,7 @@ static int face_set_extract_modal(bContext *C, wmOperator *op, const wmEvent *ev
return geometry_extract_apply(C, op, geometry_extract_tag_face_set, ¶ms);
}
break;
-
+ case EVT_ESCKEY:
case RIGHTMOUSE: {
WM_cursor_modal_restore(CTX_wm_window(C));
ED_workspace_status_text(C, NULL);
diff --git a/source/blender/editors/sculpt_paint/sculpt_detail.c b/source/blender/editors/sculpt_paint/sculpt_detail.c
index da51d3184b5..8bbd90daaf8 100644
--- a/source/blender/editors/sculpt_paint/sculpt_detail.c
+++ b/source/blender/editors/sculpt_paint/sculpt_detail.c
@@ -329,7 +329,7 @@ static int sculpt_sample_detail_size_modal(bContext *C, wmOperator *op, const wm
return OPERATOR_FINISHED;
}
break;
-
+ case EVT_ESCKEY:
case RIGHTMOUSE: {
WM_cursor_modal_restore(CTX_wm_window(C));
ED_workspace_status_text(C, NULL);
More information about the Bf-blender-cvs
mailing list