Fix T44020: Crash exporting fluid sim to fbx

The issue is coming from wrong fluid modifier copy callback,
which might have left some pointers shared across original
and target fluid modifiers.
This commit is contained in:
Sergey Sharybin 2015-03-17 12:59:44 +05:00
parent 1724513fc6
commit 07f53d6454
Notes: blender-bot 2023-02-14 09:22:31 +01:00
Referenced by issue #44020, exporting fluid sim to fbx animation crashes 2.74rc on osx 10.10
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ static void copyData(ModifierData *md, ModifierData *target)
MEM_freeN(tfluidmd->fss);
tfluidmd->fss = MEM_dupallocN(fluidmd->fss);
if (tfluidmd->fss->meshVelocities != NULL) {
tfluidmd->fss->meshVelocities = MEM_dupallocN(tfluidmd->fss->meshVelocities);
}
}