[Bf-blender-cvs] [be2bdaf6aab] blender-v2.81-release: Fix EEVEE sculpt mask rendering

Pablo Dobarro noreply at git.blender.org
Thu Oct 31 14:37:38 CET 2019


Commit: be2bdaf6aab672feb1961e2b6a2fd09f979bba2e
Author: Pablo Dobarro
Date:   Wed Oct 16 16:36:28 2019 +0200
Branches: blender-v2.81-release
https://developer.blender.org/rBbe2bdaf6aab672feb1961e2b6a2fd09f979bba2e

Fix EEVEE sculpt mask rendering

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D6080

===================================================================

M	source/blender/draw/modes/sculpt_mode.c

===================================================================

diff --git a/source/blender/draw/modes/sculpt_mode.c b/source/blender/draw/modes/sculpt_mode.c
index 9749619cffe..f32eb3b73ba 100644
--- a/source/blender/draw/modes/sculpt_mode.c
+++ b/source/blender/draw/modes/sculpt_mode.c
@@ -157,7 +157,7 @@ static void SCULPT_cache_populate(void *vedata, Object *ob)
 
     if ((ob == draw_ctx->obact) &&
         (BKE_sculptsession_use_pbvh_draw(ob, draw_ctx->v3d) ||
-         ob->sculpt->deform_modifiers_active || ob->sculpt->shapekey_active)) {
+         !ob->sculpt->deform_modifiers_active || ob->sculpt->shapekey_active)) {
       PBVH *pbvh = ob->sculpt->pbvh;
       if (pbvh && pbvh_has_mask(pbvh)) {
         DRW_shgroup_call_sculpt(stl->g_data->mask_overlay_grp, ob, false, true, false);



More information about the Bf-blender-cvs mailing list