Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-31 11:06:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-31 11:09:04 +0300
commit8a9e20495caf6e4185279dc6b7b016834c552064 (patch)
tree42e6e3932710d49a466f8a12e14c848042a8a4a6 /source
parentb6697b4d2af7679c440bbbf0a2ca1f213b64a189 (diff)
Fix T47089: View rotate fails w/ auto depth+perspective
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c4
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 {