[Bf-blender-cvs] [b839d67f3eb] blender2.8: UI: correct HUD zoom resetting

Campbell Barton noreply at git.blender.org
Thu Jun 14 08:31:14 CEST 2018


Commit: b839d67f3eb8f0e032a0e1c4950d9764ddfb0461
Author: Campbell Barton
Date:   Thu Jun 14 08:30:46 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb839d67f3eb8f0e032a0e1c4950d9764ddfb0461

UI: correct HUD zoom resetting

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

M	source/blender/editors/interface/interface_region_hud.c

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

diff --git a/source/blender/editors/interface/interface_region_hud.c b/source/blender/editors/interface/interface_region_hud.c
index b4c721bdaac..4fea154e634 100644
--- a/source/blender/editors/interface/interface_region_hud.c
+++ b/source/blender/editors/interface/interface_region_hud.c
@@ -267,7 +267,7 @@ void ED_area_type_hud_ensure(bContext *C, ScrArea *sa)
 	ED_region_tag_redraw(ar);
 
 	/* Reset zoom level (not well supported). */
-	ar->v2d.cur = (rctf){.xmax = ar->winx, .ymax = ar->winy};
+	ar->v2d.cur = ar->v2d.tot = (rctf){.xmax = ar->winx, .ymax = ar->winy};
 
 	/* Let 'ED_area_update_region_sizes' do the work of placing the region.
 	 * Otherwise we could set the 'ar->winrct' & 'ar->winx/winy' here. */



More information about the Bf-blender-cvs mailing list