[Bf-blender-cvs] [d47804c] master: correct last commit: less cryptic camera check
Campbell Barton
noreply at git.blender.org
Mon Jan 12 19:55:58 CET 2015
Commit: d47804cb0686f57c1dc298ba4106c61d626d654c
Author: Campbell Barton
Date: Tue Jan 13 05:55:10 2015 +1100
Branches: master
https://developer.blender.org/rBd47804cb0686f57c1dc298ba4106c61d626d654c
correct last commit: less cryptic camera check
===================================================================
M release/scripts/modules/bpy_extras/view3d_utils.py
===================================================================
diff --git a/release/scripts/modules/bpy_extras/view3d_utils.py b/release/scripts/modules/bpy_extras/view3d_utils.py
index 56ea1a1..ec4a395 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:
More information about the Bf-blender-cvs
mailing list