From 712a2579944fb9ee00fe3c6c34f07f2800361396 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 25 Mar 2016 13:15:50 +0100 Subject: Fix T47928: Crashing save corruption with dynamic paint drip effector groups. Dynapaint's `foreachIDLink` was mnot handling effector_weights->group pointer... --- source/blender/modifiers/intern/MOD_dynamicpaint.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/modifiers/intern/MOD_dynamicpaint.c') 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) { -- cgit v1.2.3