Revert "Draw: Use ResourceHandleRange"
This reverts commit 8adb3e758f.
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user