Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-03-17 10:59:44 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-03-17 10:59:44 +0300
commit07f53d6454e9a6a0c104a4bb3dc1e074a654c05b (patch)
tree23a85d8acb9ae36350f9f0680cb8b0f5565cc06b
parent1724513fc647056fc5831a344809058b695fcdb5 (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.c3
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 6344ec83a31..9f05d357299 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);
+ }
}