Fix T47089: View rotate fails w/ auto depth+perspective

This commit is contained in:
Campbell Barton
2015-12-31 19:06:26 +11:00
parent b6697b4d2a
commit 8a9e20495c

View File

@@ -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 {