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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-01-03 08:40:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-03 08:40:10 +0300
commit846c034323784ac938249b08ad622753d4f3dd34 (patch)
tree7086e9da51db5d3c375d3d3aa562309bf804dab7 /source/blender/editors/screen/area_utils.c
parenteb6ca6cf9f28d8b30996e1dfd7c2fc7e4fcbc768 (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.c1
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,