[Bf-blender-cvs] [76bf9b766c6] master: Fix T64120: Dynamic Paint Doesn't Recalculate Normals with Smooth Shading.

Bastien Montagne noreply at git.blender.org
Mon May 13 11:38:43 CEST 2019


Commit: 76bf9b766c6ee10aa32eda6243e413f30da7152c
Author: Bastien Montagne
Date:   Mon May 13 11:37:22 2019 +0200
Branches: master
https://developer.blender.org/rB76bf9b766c6ee10aa32eda6243e413f30da7152c

Fix T64120: Dynamic Paint Doesn't Recalculate Normals with Smooth Shading.

For wome reason, tag to mark normals as needing recompute was commented
out instead of updated to new system, during conversion of DynaPaint
code for 2.8 new evaluation stack... Trivial fix.

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

M	source/blender/blenkernel/intern/dynamicpaint.c

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

diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c
index 93b6fd34a8f..b5242d00ee0 100644
--- a/source/blender/blenkernel/intern/dynamicpaint.c
+++ b/source/blender/blenkernel/intern/dynamicpaint.c
@@ -2066,7 +2066,7 @@ static Mesh *dynamicPaint_Modifier_apply(DynamicPaintModifierData *pmd, Object *
     }
 
     if (update_normals) {
-      // result->dirty |= DM_DIRTY_NORMALS;
+      result->runtime.cd_dirty_vert |= CD_MASK_NORMAL;
     }
   }
   /* make a copy of mesh to use as brush data */



More information about the Bf-blender-cvs mailing list