diff options
author | Damien Picard <dam.pic@free.fr> | 2022-10-14 02:40:01 +0300 |
---|---|---|
committer | Damien Picard <dam.pic@free.fr> | 2022-10-20 14:15:36 +0300 |
commit | 56d33099435dec98478997e5540f46dcfa17046d (patch) | |
tree | 2f82d40d57bde856102d5303dd33f7ab52813b9c /development_icon_get.py | |
parent | dc90910e8d8f6fedb8b23a74ad6fc808b02c809b (diff) |
Fix T101708: Bug when joining nodes with thick lines
Caused by D15961, which changed the behavior of `dpi` and
`pixel_size`.
Instead of using a single value for `dpifac` (renamed to `dpi_fac`),
use a value depending on whether we want pixel density or line
width.
This patch has the side-effect that the line width from the user
preferences is now respected. It seems more logical that way, but I
can't test with a hi-dpi display to see how that looks.
If we want to get the old behavior back, we can just get rid of
`prefs_line_width()` and replace its calls with `dpi_fac()`.
A similar issue was also fixed for Icon Viewer.
Diffstat (limited to 'development_icon_get.py')
-rw-r--r-- | development_icon_get.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/development_icon_get.py b/development_icon_get.py index f4bb7989..1f22a4d8 100644 --- a/development_icon_get.py +++ b/development_icon_get.py @@ -5,8 +5,8 @@ bl_info = { "name": "Icon Viewer", "description": "Click an icon to copy its name to the clipboard", "author": "roaoao", - "version": (1, 4, 0), - "blender": (2, 80, 0), + "version": (1, 4, 1), + "blender": (3, 4, 0), "location": "Text Editor > Dev Tab > Icon Viewer", "doc_url": "{BLENDER_MANUAL_URL}/addons/development/icon_viewer.html", "category": "Development", @@ -30,7 +30,7 @@ HISTORY = [] def ui_scale(): prefs = bpy.context.preferences.system - return prefs.dpi * prefs.pixel_size / DPI + return prefs.dpi / DPI def prefs(): |