[Bf-blender-cvs] [8dc883052ca] blender2.8: UI: redo panel would still start zoomed in at times

Campbell Barton noreply at git.blender.org
Thu Jun 14 16:48:38 CEST 2018


Commit: 8dc883052ca569ccbc8a92270823d91e36894c6f
Author: Campbell Barton
Date:   Thu Jun 14 16:47:39 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8dc883052ca569ccbc8a92270823d91e36894c6f

UI: redo panel would still start zoomed in at times

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

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 4fea154e634..ec5e7e5a011 100644
--- a/source/blender/editors/interface/interface_region_hud.c
+++ b/source/blender/editors/interface/interface_region_hud.c
@@ -268,6 +268,8 @@ void ED_area_type_hud_ensure(bContext *C, ScrArea *sa)
 
 	/* Reset zoom level (not well supported). */
 	ar->v2d.cur = ar->v2d.tot = (rctf){.xmax = ar->winx, .ymax = ar->winy};
+	ar->v2d.minzoom = 1.0f;
+	ar->v2d.maxzoom = 1.0f;
 
 	/* 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