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
Notes: blender-bot 2023-02-14 08:20:35 +01:00
Referenced by issue #47089, ViewRotate fails w/ AutoDepth & Cursor Depth
1 changed files with 3 additions and 1 deletions

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 {