Commit: c6f1be07284e02ee155698778608a63061645cbe
Author: Sergey Sharybin
Date: Tue Mar 17 12:59:44 2015 +0500
Branches: blender-v2.74-release
https://developer.blender.org/rBc6f1be07284e02ee155698778608a63061645cbe
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.
===================================================================
M source/blender/modifiers/intern/MOD_fluidsim.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_fluidsim.c
b/source/blender/modifiers/intern/MOD_fluidsim.c
index 9c973cd..4527fa7 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);
+ }
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs