Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-30 22:09:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-30 22:09:19 +0400
commitd7f51f83f65799b447324d1738239cffdc5e1918 (patch)
treea050f6d3cc5ee87565bb5e56650a99bbaf411081 /source/blender/blenkernel/intern/dynamicpaint.c
parent09e11ad6ef1187d581b64a9ac6ebbbb6f056f7d9 (diff)
remove CD_MASK_NORMAL from CD_MASK_DERIVEDMESH, bmesh merge included this but its not needed.
Now add asserts to make sure this layer is only added once the modifier stack has been calculated. this saves normal layer being calculated whenver vertex normals need updating.
Diffstat (limited to 'source/blender/blenkernel/intern/dynamicpaint.c')
-rw-r--r--source/blender/blenkernel/intern/dynamicpaint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c
index 812c0cf674b..9d1c0e40d54 100644
--- a/source/blender/blenkernel/intern/dynamicpaint.c
+++ b/source/blender/blenkernel/intern/dynamicpaint.c
@@ -1893,8 +1893,7 @@ static DerivedMesh *dynamicPaint_Modifier_apply(DynamicPaintModifierData *pmd,
}
}
- if (update_normals)
- CDDM_calc_normals(result);
+ result->dirty |= DM_DIRTY_NORMALS;
}
/* make a copy of dm to use as brush data */
if (pmd->brush) {