Fix T47928: Crashing save corruption with dynamic paint drip effector groups.

Dynapaint's `foreachIDLink` was mnot handling effector_weights->group pointer...
This commit is contained in:
Bastien Montagne 2016-03-25 13:15:50 +01:00
parent 4509559c13
commit 712a257994
Notes: blender-bot 2023-02-14 09:17:57 +01:00
Referenced by issue #47928, Crashing save corruption with dynamic paint drip effector groups.
1 changed files with 4 additions and 0 deletions

View File

@ -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) {