diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-02 02:40:27 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-02 02:41:02 +0300 |
commit | 8bee200e2f4ba82cab51fa479a46e3724f26ecba (patch) | |
tree | 6bb4d10b9662cc87abcc112e99329d32cee1df8a /source/blender/draw/engines/overlay/overlay_sculpt.c | |
parent | 52b125a790e389b463e0d9947bab8747534f9cb5 (diff) |
Fix T76229 Overlay: Sulpt overlay not working if object use in-front option
Simple fix similar to paint overlay.
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_sculpt.c')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_sculpt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_sculpt.c b/source/blender/draw/engines/overlay/overlay_sculpt.c index 111fa6316ed..b36252ead30 100644 --- a/source/blender/draw/engines/overlay/overlay_sculpt.c +++ b/source/blender/draw/engines/overlay/overlay_sculpt.c @@ -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); |