diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-25 15:15:50 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-05 11:36:08 +0300 |
commit | 721f0089aa6799573611c4da78f7c57a3abf7090 (patch) | |
tree | f1a1ba3a97174dd858076e8b1bc23a4f9436be45 /source/blender | |
parent | 70d417cbe86f57e0f42cebe998d0883da33111a4 (diff) |
Fix T47928: Crashing save corruption with dynamic paint drip effector groups.
Dynapaint's `foreachIDLink` was mnot handling effector_weights->group pointer...
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/modifiers/intern/MOD_dynamicpaint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_dynamicpaint.c b/source/blender/modifiers/intern/MOD_dynamicpaint.c index 91af9659d79..edf959f42c6 100644 --- a/source/blender/modifiers/intern/MOD_dynamicpaint.c +++ b/source/blender/modifiers/intern/MOD_dynamicpaint.c @@ -29,6 +29,7 @@ #include "DNA_dynamicpaint_types.h" #include "DNA_object_types.h" +#include "DNA_object_force.h" #include "DNA_scene_types.h" #include "BLI_utildefines.h" @@ -173,6 +174,9 @@ static void foreachIDLink(ModifierData *md, Object *ob, for (; surface; surface = surface->next) { walk(userData, ob, (ID **)&surface->brush_group, IDWALK_NOP); walk(userData, ob, (ID **)&surface->init_texture, IDWALK_USER); + if (surface->effector_weights) { + walk(userData, ob, (ID **)&surface->effector_weights->group, IDWALK_NOP); + } } } if (pmd->brush) { |