Skip to content
Snippets Groups Projects
Commit 48ecad69 authored by Greg Zaal's avatar Greg Zaal
Browse files

Node Wrangler: Actual fix for retina issues

parent 4fc1f4af
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
bl_info = {
"name": "Node Wrangler",
"author": "Bartek Skorupa, Greg Zaal, Sebastian Koenig",
"version": (3, 22),
"version": (3, 23),
"blender": (2, 72, 0),
"location": "Node Editor Toolbar or Ctrl-Space",
"description": "Various tools to enhance and speed up node-based workflow",
......@@ -604,7 +604,11 @@ def hack_force_update(context, nodes):
def dpifac():
retinafac = (2 if bpy.context.user_preferences.system.virtual_pixel_mode == 'DOUBLE' else 1)
prefs = bpy.context.user_preferences.system
if hasattr(prefs, 'pixel_size'): # python access to this was only added recently, assume non-retina display is used if using older blender
retinafac = bpy.context.user_preferences.system.pixel_size
else:
retinafac = 1
return bpy.context.user_preferences.system.dpi/(72/retinafac)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment