diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-07 04:31:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-07 04:32:22 +0300 |
commit | a6f7d64ce6f7f9eaf6e1c75a498384861cc87bd0 (patch) | |
tree | 37e1edc8a6c777c366c4ef2168270640a84384b5 /source/blender/editors/space_view3d/view3d_edit.c | |
parent | 951c8e53f4dd4b8241c88e0419c4d70d98497520 (diff) |
Fix "View All" potential min/max use when all objects were skipped
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_edit.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 6a65e86c3d6..ab119d79aad 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -2724,7 +2724,6 @@ static int view3d_all_exec(bContext *C, wmOperator *op) for (base_eval = view_layer_eval->object_bases.first; base_eval; base_eval = base_eval->next) { if (BASE_VISIBLE(v3d, base_eval)) { - changed = true; Object *ob = DEG_get_original_object(base_eval->object); if (skip_camera && ob == v3d->camera) { @@ -2739,6 +2738,7 @@ static int view3d_all_exec(bContext *C, wmOperator *op) } BKE_object_minmax(base_eval->object, min, max, false); + changed = true; } } |