diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-30 15:56:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-30 15:56:15 +0400 |
commit | 5ae37494f63fd68e647028525ab0906c2ddce0ba (patch) | |
tree | 71ca5c2e1697a1a181b704a69f91636d66246b1b /release/scripts | |
parent | 97bf777cba5d0c6e3d4b35fc0d6a152e7d9e0792 (diff) |
revert own fix for adding nodes with (DPI != 72), the fix doesn't work for OSX retina displays.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/node.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index 1e92619c519..cc1fa93ec2c 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -66,12 +66,8 @@ class NodeAddOperator(): # convert mouse position to the View2D for later node placement if context.region.type == 'WINDOW': - # XXX, why use DPI for coords? - dpi_fac = context.user_preferences.system.dpi / 72.0 space.cursor_location = v2d.region_to_view(event.mouse_region_x, event.mouse_region_y) - space.cursor_location /= dpi_fac - else: space.cursor_location = tree.view_center |