OverlayEngine: crash when using hidden faces
Unreported Crash. When hidden faces are active (retopology) the depth test could fail as the default framebuffers aren't set. This patch will check if we are rendering a depth only and skip the clearing of the buffer.
This commit is contained in:
parent
3c1433b6f3
commit
8cb463f4ff
Notes:
blender-bot
2023-02-14 00:10:08 +01:00
Referenced by issue #73929, In editing mode, when "in Front" is on, Annotations are not drawn on the surface
|
@ -398,7 +398,7 @@ void OVERLAY_edit_mesh_draw(OVERLAY_Data *vedata)
|
|||
DRW_draw_pass(psl->edit_mesh_normals_ps);
|
||||
overlay_edit_mesh_draw_components(psl, pd, false);
|
||||
|
||||
if (v3d->shading.type == OB_SOLID && pd->edit_mesh.ghost_ob == 1 &&
|
||||
if (!DRW_state_is_depth() && v3d->shading.type == OB_SOLID && pd->edit_mesh.ghost_ob == 1 &&
|
||||
pd->edit_mesh.edit_ob == 1) {
|
||||
/* In the case of single ghost object edit (common case for retopology):
|
||||
* we clear the depth buffer so that only the depth of the retopo mesh
|
||||
|
|
Loading…
Reference in New Issue