Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-14 17:47:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-14 17:48:31 +0300
commit8dc883052ca569ccbc8a92270823d91e36894c6f (patch)
tree4f712e692b4d8ac93571d76456e8fcc68afac987 /source
parent59bb5d3a89d4379ccc74138aa0d4cd4ce2d8a093 (diff)
UI: redo panel would still start zoomed in at times
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_region_hud.c2
1 files changed, 2 insertions, 0 deletions
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. */