UI: redo panel would still start zoomed in at times

This commit is contained in:
Campbell Barton 2018-06-14 16:47:39 +02:00
parent 59bb5d3a89
commit 8dc883052c
1 changed files with 2 additions and 0 deletions

View File

@ -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. */