diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-17 09:30:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-17 09:30:29 +0300 |
commit | 1dbe9c262f3b0af6441272f55077cd2c132e6de0 (patch) | |
tree | ba9332373e286821715facae22f99f57ff8366f5 /source/blender/editors | |
parent | ae0c36f82bc4d574a043b9148745a0ba3130395c (diff) |
View3D: Check all objects w/ view-selected
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index a2066ee51c7..d78d3f96835 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -2842,10 +2842,17 @@ static int viewselected_exec(bContext *C, wmOperator *op) ok = WM_manipulatormap_minmax(ar->manipulator_map, true, true, min, max); } else if (obedit) { - ok = ED_view3d_minmax_verts(obedit, min, max); /* only selected */ + /* only selected */ + FOREACH_OBJECT_IN_MODE_BEGIN (view_layer, obedit->mode, ob_iter) { + ok |= ED_view3d_minmax_verts(ob_iter, min, max); + } + FOREACH_OBJECT_IN_MODE_END; } else if (ob && (ob->mode & OB_MODE_POSE)) { - ok = BKE_pose_minmax(ob, min, max, true, true); + FOREACH_OBJECT_IN_MODE_BEGIN (view_layer, ob->mode, ob_iter) { + ok |= BKE_pose_minmax(ob_iter, min, max, true, true); + } + FOREACH_OBJECT_IN_MODE_END; } else if (BKE_paint_select_face_test(ob)) { ok = paintface_minmax(ob, min, max); |