diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-12 10:52:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-12 10:52:24 +0400 |
commit | 2f08309ffe0f1a005f4f7e26bc6d9d4b15fbf822 (patch) | |
tree | 5a683a22b8a67c84d09d552a910a93affb711786 /release | |
parent | a131ce066a8ef4730892dbbf58517535e6ca0188 (diff) |
window_to_3d_vector was incorrect but dolly view operator was accounting for it. fixed so result isnt negated and mouse coords dont need to be adjusted.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/view3d_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/view3d_utils.py b/release/scripts/modules/view3d_utils.py index a4e05e7e1c0..15f5aaa20b7 100644 --- a/release/scripts/modules/view3d_utils.py +++ b/release/scripts/modules/view3d_utils.py @@ -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): |