Fix T58836: Shift-C doesn't update the view

This commit is contained in:
Campbell Barton 2018-12-06 15:52:12 +11:00
parent 45afcd6b86
commit c39bb6bd58
Notes: blender-bot 2023-02-14 06:49:57 +01:00
Referenced by issue #58836, Shift C doesn't update the cursor when there is no object in the scene
1 changed files with 5 additions and 4 deletions

View File

@ -2734,6 +2734,11 @@ static int view3d_all_exec(bContext *C, wmOperator *op)
BKE_object_minmax(base_eval->object, min, max, false);
}
}
if (center) {
DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
}
if (!changed) {
ED_region_tag_redraw(ar);
/* TODO - should this be cancel?
@ -2753,10 +2758,6 @@ static int view3d_all_exec(bContext *C, wmOperator *op)
view3d_from_minmax(C, v3d, ar, min, max, true, smooth_viewtx);
}
if (center) {
DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
}
return OPERATOR_FINISHED;
}