diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-12 21:55:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-12 21:55:10 +0300 |
commit | d47804cb0686f57c1dc298ba4106c61d626d654c (patch) | |
tree | df9a974249925f5dcba0b957270c9794efe974b6 /release/scripts/modules/bpy_extras | |
parent | a4366497db5d30d12f9bbdc6644e5a282383af37 (diff) |
correct last commit: less cryptic camera check
Diffstat (limited to 'release/scripts/modules/bpy_extras')
-rw-r--r-- | release/scripts/modules/bpy_extras/view3d_utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy_extras/view3d_utils.py b/release/scripts/modules/bpy_extras/view3d_utils.py index 56ea1a1b0aa..ec4a395f1e1 100644 --- a/release/scripts/modules/bpy_extras/view3d_utils.py +++ b/release/scripts/modules/bpy_extras/view3d_utils.py @@ -102,9 +102,7 @@ def region_2d_to_origin_3d(region, rv3d, coord, clamp=None): viewinv.translation) if clamp != 0.0: - winmat = rv3d.window_matrix - # check this isn't a camera - if winmat[2][3] == 0.0: + if rv3d.view_perspective != 'CAMERA': # this value is scaled to the far clip already origin_offset = persinv.col[2].xyz if clamp is not None: |