revert own fix for adding nodes with (DPI != 72), the fix doesn't work for OSX retina...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 30 Jun 2013 11:56:15 +0000 (11:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 30 Jun 2013 11:56:15 +0000 (11:56 +0000)
release/scripts/startup/bl_operators/node.py

index 1e92619c519b6a3f67a197d3044d420c6fa94258..cc1fa93ec2c660ca3856e7e866ea20d8e40e4d27 100644 (file)
@@ -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