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-05-17 21:28:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-17 21:28:14 +0300
commitb0c8d35142c3a0fa6f468efff41c44ce9ae1d1d0 (patch)
tree9ca03214d3e88f8f3abde815fa9fd14ecfdbb527 /source/blender/editors/mesh/editmesh_extrude.c
parent486ff7e52c031e257f4044ccbc2cdafb807cce32 (diff)
Tool System: use context mode
Was using object mode in the workspace API which isn't useful for accessing tools.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_extrude.c')
-rw-r--r--source/blender/editors/mesh/editmesh_extrude.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c
index 67596ef5c8a..95bf8e89b0e 100644
--- a/source/blender/editors/mesh/editmesh_extrude.c
+++ b/source/blender/editors/mesh/editmesh_extrude.c
@@ -420,7 +420,7 @@ static void manipulator_mesh_extrude_orientation_matrix_set(
static bool manipulator_mesh_extrude_poll(const bContext *C, wmManipulatorGroupType *wgt)
{
WorkSpace *workspace = CTX_wm_workspace(C);
- const bToolKey tkey = { .space_type = SPACE_VIEW3D, .mode = OB_MODE_EDIT};
+ const bToolKey tkey = { .space_type = SPACE_VIEW3D, .mode = CTX_MODE_EDIT_MESH, };
bToolRef_Runtime *tref_rt = WM_toolsystem_runtime_find(workspace, &tkey);
if ((tref_rt == NULL) ||
!STREQ(wgt->idname, tref_rt->manipulator_group) ||