diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-21 19:06:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-08-21 19:06:46 +0300 |
commit | 7e8784925780642e9db4219cf10000228f775949 (patch) | |
tree | 35d6337135ff2af1232ff3e3fbcb3edfecb50310 /source/blender/editors/mesh | |
parent | be89b95e983566a74e72ab51fddacee49b808869 (diff) |
Cleanup: rename manipulator API functions
- WM_manipulatorgrouptype_remove- > free
- WM_manipulator_group -> WM_manipulator_group_type
Naming here is still a bit confusing,
now at least free/remove are differentiated.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_bisect.c | 4 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_extrude.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_bisect.c b/source/blender/editors/mesh/editmesh_bisect.c index 228677a51c8..c9f083e2089 100644 --- a/source/blender/editors/mesh/editmesh_bisect.c +++ b/source/blender/editors/mesh/editmesh_bisect.c @@ -200,7 +200,7 @@ static int mesh_bisect_modal(bContext *C, wmOperator *op, const wmEvent *event) { View3D *v3d = CTX_wm_view3d(C); if (v3d && (v3d->twtype & V3D_MANIPULATOR_DRAW)) { - WM_manipulator_group_add("MESH_WGT_bisect"); + WM_manipulator_group_type_add("MESH_WGT_bisect"); } } #endif @@ -596,7 +596,7 @@ static bool manipulator_mesh_bisect_poll(const bContext *C, wmManipulatorGroupTy { wmOperator *op = WM_operator_last_redo(C); if (op == NULL || !STREQ(op->type->idname, "MESH_OT_bisect")) { - WM_manipulator_group_remove_ptr_delayed(wgt); + WM_manipulator_group_type_remove_ptr_delayed(wgt); return false; } return true; diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c index e7fcad9e633..9bc01687122 100644 --- a/source/blender/editors/mesh/editmesh_extrude.c +++ b/source/blender/editors/mesh/editmesh_extrude.c @@ -761,7 +761,7 @@ static int edbm_spin_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(e if (ret & OPERATOR_FINISHED) { /* Setup manipulators */ if (v3d && (v3d->twtype & V3D_MANIPULATOR_DRAW)) { - WM_manipulator_group_add("MESH_WGT_spin"); + WM_manipulator_group_type_add("MESH_WGT_spin"); } } #endif @@ -1059,7 +1059,7 @@ static bool manipulator_mesh_spin_poll(const bContext *C, wmManipulatorGroupType { wmOperator *op = WM_operator_last_redo(C); if (op == NULL || !STREQ(op->type->idname, "MESH_OT_spin")) { - WM_manipulator_group_remove_ptr_delayed(wgt); + WM_manipulator_group_type_remove_ptr_delayed(wgt); return false; } return true; |