diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-17 10:59:44 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-24 17:47:47 +0300 |
commit | c6f1be07284e02ee155698778608a63061645cbe (patch) | |
tree | 5559caa609c5f8fe4ddb1046e5d8815b3bf04e0b | |
parent | 584aed0721f400cafb9a0849e42a49de3d7f7a34 (diff) |
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.
-rw-r--r-- | source/blender/modifiers/intern/MOD_fluidsim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_fluidsim.c b/source/blender/modifiers/intern/MOD_fluidsim.c index 9c973cd0d50..4527fa7ba1d 100644 --- a/source/blender/modifiers/intern/MOD_fluidsim.c +++ b/source/blender/modifiers/intern/MOD_fluidsim.c @@ -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); + } } |