Fix T76229 Overlay: Sulpt overlay not working if object use in-front option
Simple fix similar to paint overlay.
This commit is contained in:
parent
52b125a790
commit
8bee200e2f
Notes:
blender-bot
2023-02-14 11:29:52 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83 Referenced by issue #76229, Face Sets and Masking in Sculpt Mode Not Visible on Meshes Using 'In Front'
|
@ -62,10 +62,11 @@ void OVERLAY_sculpt_cache_populate(OVERLAY_Data *vedata, Object *ob)
|
|||
void OVERLAY_sculpt_draw(OVERLAY_Data *vedata)
|
||||
{
|
||||
OVERLAY_PassList *psl = vedata->psl;
|
||||
OVERLAY_PrivateData *pd = vedata->stl->pd;
|
||||
DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get();
|
||||
|
||||
if (DRW_state_is_fbo()) {
|
||||
GPU_framebuffer_bind(dfbl->default_fb);
|
||||
GPU_framebuffer_bind(pd->painting.in_front ? dfbl->in_front_fb : dfbl->default_fb);
|
||||
}
|
||||
|
||||
DRW_draw_pass(psl->sculpt_mask_ps);
|
||||
|
|
Loading…
Reference in New Issue