From f8303efd573192fc1b30eb6e4e5c6fdcd8ff47b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Mon, 8 Sep 2025 12:00:03 +0200 Subject: [PATCH] Revert "Draw: Use ResourceHandleRange" This reverts commit 8adb3e758f543e87d9e8166c9a2982ed512ac537. This is a partial revert that just always use the fallback path. The new optimized path is causing issues with overlays #145446 and volumes #145420. The new path will be enabled back when we fix those issues. --- source/blender/draw/intern/draw_context.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/draw/intern/draw_context.cc b/source/blender/draw/intern/draw_context.cc index 03e37aadfa8..e7fc2794b09 100644 --- a/source/blender/draw/intern/draw_context.cc +++ b/source/blender/draw/intern/draw_context.cc @@ -771,9 +771,13 @@ static void foreach_obref_in_scene(DRWContext &draw_ctx, eEvaluationMode eval_mode = DEG_get_mode(depsgraph); View3D *v3d = draw_ctx.v3d; +#if 0 /* Temporary disabled until we can fix all the issues that it causes. */ /* EEVEE is not supported for now. */ const bool engines_support_handle_ranges = (v3d && v3d->shading.type <= OB_SOLID) || BKE_scene_uses_blender_workbench(draw_ctx.scene); +#else + const bool engines_support_handle_ranges = false; +#endif DEGObjectIterSettings deg_iter_settings = {nullptr}; deg_iter_settings.depsgraph = depsgraph;