diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-31 11:06:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-31 11:09:04 +0300 |
commit | 8a9e20495caf6e4185279dc6b7b016834c552064 (patch) | |
tree | 42e6e3932710d49a466f8a12e14c848042a8a4a6 /source/blender/editors/space_view3d/view3d_edit.c | |
parent | b6697b4d2af7679c440bbbf0a2ca1f213b64a189 (diff) |
Fix T47089: View rotate fails w/ auto depth+perspective
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_edit.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 4ffcd24dc17..6b98d2b9784 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -4848,9 +4848,11 @@ bool ED_view3d_autodist( bool depth_ok = false; /* Get Z Depths, needed for perspective, nice for ortho */ - bgl_get_mats(&mats); ED_view3d_draw_depth(scene, ar, v3d, alphaoverride); + /* call after in case settings have been modified since last drawing, see: T47089 */ + bgl_get_mats(&mats); + /* Attempt with low margin's first */ i = 0; do { |