DRW: Use culling when selecting
The culing still seems to be off but at least it is enabled now.
This commit is contained in:
parent
21aa4d73bf
commit
905f2d84af
Notes:
blender-bot
2023-02-14 06:00:46 +01:00
Referenced by issue #62511, Blender 2.79 vs 2.8 - Selection is significantly slower in production scenes
|
@ -169,8 +169,8 @@ static void basic_cache_populate(void *vedata, Object *ob)
|
|||
const bool do_cull = (draw_ctx->v3d &&
|
||||
(draw_ctx->v3d->shading.flag & V3D_SHADING_BACKFACE_CULLING));
|
||||
/* Depth Prepass */
|
||||
DRW_shgroup_call_add(
|
||||
(do_cull) ? stl->g_data->depth_shgrp_cull : stl->g_data->depth_shgrp, geom, ob->obmat);
|
||||
DRW_shgroup_call_object_add(
|
||||
(do_cull) ? stl->g_data->depth_shgrp_cull : stl->g_data->depth_shgrp, geom, ob);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue