diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-03 08:40:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-03 08:40:10 +0300 |
commit | 846c034323784ac938249b08ad622753d4f3dd34 (patch) | |
tree | 7086e9da51db5d3c375d3d3aa562309bf804dab7 /source/blender/editors/screen/area_utils.c | |
parent | eb6ca6cf9f28d8b30996e1dfd7c2fc7e4fcbc768 (diff) |
UI: scale region hide threshold by zoom level
Resolves issue were it wasn't possible to have a single column toolbar
when zoomed out.
Diffstat (limited to 'source/blender/editors/screen/area_utils.c')
-rw-r--r-- | source/blender/editors/screen/area_utils.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area_utils.c b/source/blender/editors/screen/area_utils.c index a9fdaf52ee5..12de1ddb795 100644 --- a/source/blender/editors/screen/area_utils.c +++ b/source/blender/editors/screen/area_utils.c @@ -70,7 +70,6 @@ int ED_region_generic_tools_region_snap_size(const ARegion *ar, int size, int ax const float column = 1.25f * icon_size; const float margin = 0.5f * icon_size; const float snap_units[] = { - 0, /* Without this we can't hide the toolbar. */ column + margin, (2.0f * column) + margin, (2.7f * column) + margin, |