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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-05-08 16:27:10 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-05-08 16:27:10 +0300
commit43e0e8defa71bd3086b8547c848f7686e019e51b (patch)
tree465e11bca0b4962b66e3a24f362929a3f2c930a1 /source/blender/modifiers/intern/MOD_dynamicpaint.c
parent3740f7593d7146135c2d2fac363f8aed4ba41cf0 (diff)
Fix (unreported) bloody modifiers messing with ID user count in copy.
User count of IDs is handled by higher-level, generic function, low-level copydata functions *MUST NOT* touch them anymore, ever!
Diffstat (limited to 'source/blender/modifiers/intern/MOD_dynamicpaint.c')
-rw-r--r--source/blender/modifiers/intern/MOD_dynamicpaint.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/blender/modifiers/intern/MOD_dynamicpaint.c b/source/blender/modifiers/intern/MOD_dynamicpaint.c
index 9a497acbde1..e7cec312948 100644
--- a/source/blender/modifiers/intern/MOD_dynamicpaint.c
+++ b/source/blender/modifiers/intern/MOD_dynamicpaint.c
@@ -60,15 +60,6 @@ static void copyData(const ModifierData *md, ModifierData *target)
DynamicPaintModifierData *tpmd = (DynamicPaintModifierData *)target;
dynamicPaint_Modifier_copy(pmd, tpmd);
-
- if (tpmd->canvas) {
- for (DynamicPaintSurface *surface = tpmd->canvas->surfaces.first; surface; surface = surface->next) {
- id_us_plus((ID *)surface->init_texture);
- }
- }
- if (tpmd->brush) {
- id_us_plus((ID *)tpmd->brush->mat);
- }
}
static void freeData(ModifierData *md)