Fix T81013: Weight Paint Overlay XRay fails with clipping
When introduced in rB1ca1744c29e2, the Weight Paint Overlay XRay's corresponding depth pass was not considering clipping planes. Maniphest Tasks: T81013 Differential Revision: https://developer.blender.org/D8970
This commit is contained in:
parent
b67c90a822
commit
af7378bf2a
@ -106,7 +106,7 @@ void OVERLAY_paint_cache_init(OVERLAY_Data *vedata)
|
||||
|
||||
if (pd->painting.alpha_blending) {
|
||||
state = DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL;
|
||||
DRW_PASS_CREATE(psl->paint_depth_ps, state);
|
||||
DRW_PASS_CREATE(psl->paint_depth_ps, state | pd->clipping_state);
|
||||
sh = OVERLAY_shader_depth_only();
|
||||
pd->paint_depth_grp = DRW_shgroup_create(sh, psl->paint_depth_ps);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user