diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-24 17:13:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-24 17:19:39 +0300 |
commit | 7f89bc8e8502cdf8b62221265b564fce4219332f (patch) | |
tree | a3c0ca7b3339614329c3aee0fd0b856d9eeba67b /source/blender | |
parent | f9b6f5756c05d1024f25951f71ebbe68c83296e1 (diff) |
Fix rare crash duplicating fluidsim
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/modifiers/intern/MOD_fluidsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_fluidsim.c b/source/blender/modifiers/intern/MOD_fluidsim.c index 8d2774a346f..c202c5e1cb4 100644 --- a/source/blender/modifiers/intern/MOD_fluidsim.c +++ b/source/blender/modifiers/intern/MOD_fluidsim.c @@ -72,7 +72,7 @@ static void copyData(ModifierData *md, ModifierData *target) MEM_freeN(tfluidmd->fss); tfluidmd->fss = MEM_dupallocN(fluidmd->fss); - if (tfluidmd->fss->meshVelocities != NULL) { + if (tfluidmd->fss && (tfluidmd->fss->meshVelocities != NULL)) { tfluidmd->fss->meshVelocities = MEM_dupallocN(tfluidmd->fss->meshVelocities); } } |