From d47804cb0686f57c1dc298ba4106c61d626d654c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 13 Jan 2015 05:55:10 +1100 Subject: [PATCH] correct last commit: less cryptic camera check --- release/scripts/modules/bpy_extras/view3d_utils.py | 4 +--- 1 file changed, 1 insertion(+), 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: