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>2020-01-07 06:45:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-07 06:45:01 +0300
commit9d7abce359f60eefb78e5edaf21aa24322a6f511 (patch)
treef4963b72cf02c9428141b9dbe7586470a6ec9d3c /source/blender/editors/mesh/editmesh_select.c
parent8bdac377d85a74a0a84eda51fbcc927ae4ad54b3 (diff)
BMesh: remove BMEditMesh.ob use for select mirror
Diffstat (limited to 'source/blender/editors/mesh/editmesh_select.c')
-rw-r--r--source/blender/editors/mesh/editmesh_select.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index 40d57af97aa..ebd8d50cfc3 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -75,15 +75,18 @@
/** \name Select Mirror
* \{ */
-void EDBM_select_mirrored(
- BMEditMesh *em, const int axis, const bool extend, int *r_totmirr, int *r_totfail)
+void EDBM_select_mirrored(BMEditMesh *em,
+ const Mesh *me,
+ const int axis,
+ const bool extend,
+ int *r_totmirr,
+ int *r_totfail)
{
- Mesh *me = (Mesh *)em->ob->data;
BMesh *bm = em->bm;
BMIter iter;
int totmirr = 0;
int totfail = 0;
- bool use_topology = (me && (me->editflag & ME_EDIT_MIRROR_TOPO));
+ bool use_topology = me->editflag & ME_EDIT_MIRROR_TOPO;
*r_totmirr = *r_totfail = 0;
@@ -3863,7 +3866,7 @@ static int edbm_select_mirror_exec(bContext *C, wmOperator *op)
for (int axis = 0; axis < 3; axis++) {
if ((1 << axis) & axis_flag) {
- EDBM_select_mirrored(em, axis, extend, &tot_mirr_iter, &tot_fail_iter);
+ EDBM_select_mirrored(em, obedit->data, axis, extend, &tot_mirr_iter, &tot_fail_iter);
}
}