window_to_3d_vector was incorrect but dolly view operator was accounting for it....
[blender-staging.git] / release / scripts / modules / view3d_utils.py
index a4e05e7e1c0685f6c5ffe8b922fbe4e5dcad4449..15f5aaa20b7090b75c71fc77667c84d1c3e485b7 100644 (file)
@@ -65,7 +65,7 @@ def region_2d_to_location_3d(region, rv3d, coord, depth_location):
     from mathutils.geometry import intersect_point_line
     origin_start = rv3d.view_matrix.inverted()[3].to_3d()
     origin_end = origin_start + region_2d_to_vector_3d(region, rv3d, coord)
-    return intersect_point_line(depth_vector, origin_start, origin_end)[0]
+    return intersect_point_line(depth_location, origin_start, origin_end)[0]
 
 
 def location_3d_to_region_2d(region, rv3d, coord):