Fix #138000: Retopology overlay broken

Do not skip the depth prepass for the retopology mesh.

Pull Request: https://projects.blender.org/blender/blender/pulls/138042
This commit is contained in:
Kabinet0
2025-04-29 15:24:28 +02:00
committed by Miguel Pozo
parent 93408e03a4
commit dd528023d9

View File

@@ -315,7 +315,7 @@ class Meshes : Overlay {
const bool draw_as_solid = (ob->dt > OB_WIRE) && !state.xray_enabled;
const bool has_edit_cage = mesh_has_edit_cage(ob);
if (show_retopology_ && !state.is_render_depth_available) {
if (show_retopology_) {
gpu::Batch *geom = DRW_mesh_batch_cache_get_edit_triangles(mesh);
edit_mesh_prepass_ps_.draw(geom, res_handle);
}