[Bf-blender-cvs] [c39bb6bd58c] blender2.8: Fix T58836: Shift-C doesn't update the view

Campbell Barton noreply at git.blender.org
Thu Dec 6 05:55:06 CET 2018


Commit: c39bb6bd58c0c92335f1f4b7b0b35af5cbe29a4a
Author: Campbell Barton
Date:   Thu Dec 6 15:52:12 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBc39bb6bd58c0c92335f1f4b7b0b35af5cbe29a4a

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

===================================================================

M	source/blender/editors/space_view3d/view3d_edit.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 233bcb7f50c..6df4b3f82b9 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -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;
 }



More information about the Bf-blender-cvs mailing list