From e33974effb0880be1ed0f70c4ca76fb9f5581eab Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Fri, 28 Apr 2023 16:38:15 -0300 Subject: [PATCH] Fix Auto Depth not working Error in 67203c0ec8ed732e5c70a22648470aee8caa04c7 The wrong Auto Depth flag was being read. --- source/blender/editors/space_view3d/view3d_navigate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_view3d/view3d_navigate.cc b/source/blender/editors/space_view3d/view3d_navigate.cc index c67e05458f3..a7f8486ae9a 100644 --- a/source/blender/editors/space_view3d/view3d_navigate.cc +++ b/source/blender/editors/space_view3d/view3d_navigate.cc @@ -494,7 +494,7 @@ bool view3d_orbit_calc_center(bContext *C, float r_dyn_ofs[3]) static eViewOpsFlag viewops_flag_from_prefs(void) { const bool use_select = (U.uiflag & USER_ORBIT_SELECTION) != 0; - const bool use_depth = (U.uiflag & VIEWOPS_FLAG_DEPTH_NAVIGATE) != 0; + const bool use_depth = (U.uiflag & USER_DEPTH_NAVIGATE) != 0; const bool use_zoom_to_mouse = (U.uiflag & USER_ZOOM_TO_MOUSEPOS) != 0; enum eViewOpsFlag flag = VIEWOPS_FLAG_NONE;