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:
authorMiika Hamalainen <blender@miikah.org>2011-07-22 22:37:30 +0400
committerMiika Hamalainen <blender@miikah.org>2011-07-22 22:37:30 +0400
commitcbe1613c0123d7705b9bba3806c03fe09151e729 (patch)
tree5d9b0f775a8c646959bc0b76545d02719700866a /source/blender/modifiers/intern/MOD_dynamicpaint.c
parent4b80e1aba2e6f92b08ceddca2cab7d108ef8fac0 (diff)
Dynamic Paint:
* Surface bake data is no longer recalculated every frame, but only when surface mesh has moved/transformed. Results in multiple times better performance on high resolution surfaces when using sub-steps or surface is still. * Heavily optimized particle brushes when random particle size enabled. Up to 10x speedup with large radius particles. * Added an additional "grid" space partitioning structure for surfaces. * Added bounding box checks for brushes. * Smaller overall optimization. * Further OpenMP parallelization. * Added physics tab link to modifier panel. * Fix: "Point Density" texture cache wasn't properly updated. Brushes can now use Point Density textures as well. * Fix: Paint dissolve resulted in black color. * Fix: KD-tree checkups weren't completely thread safe. Fixes possible crash with OpenMP enabled particle brushes. * Fix: When brush was set to use a specific material, it was saved incorrectly and resulted in potential crashes on next load.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_dynamicpaint.c')
-rw-r--r--source/blender/modifiers/intern/MOD_dynamicpaint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_dynamicpaint.c b/source/blender/modifiers/intern/MOD_dynamicpaint.c
index 7d2eccf8e81..ba01b1f36ba 100644
--- a/source/blender/modifiers/intern/MOD_dynamicpaint.c
+++ b/source/blender/modifiers/intern/MOD_dynamicpaint.c
@@ -126,6 +126,9 @@ static void foreachIDLink(ModifierData *md, Object *ob,
walk(userData, ob, (ID **)&surface->brush_group);
}
}
+ if (pmd->brush) {
+ walk(userData, ob, (ID **)&pmd->brush->mat);
+ }
}
ModifierTypeInfo modifierType_DynamicPaint = {