diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_smoke.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_smoke.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_smoke.c b/source/blender/modifiers/intern/MOD_smoke.c index 32d908a5552..df8372876bd 100644 --- a/source/blender/modifiers/intern/MOD_smoke.c +++ b/source/blender/modifiers/intern/MOD_smoke.c @@ -32,6 +32,8 @@ #include "stddef.h" +#include "MEM_guardedalloc.h" + #include "BKE_cdderivedmesh.h" #include "BKE_modifier.h" #include "BKE_smoke.h" @@ -52,6 +54,14 @@ static void initData(ModifierData *md) smd->time = -1; } +static void copyData(ModifierData *md, ModifierData *target) +{ + SmokeModifierData *smd = (SmokeModifierData*)md; + SmokeModifierData *tsmd = (SmokeModifierData*)target; + + smokeModifier_copy(smd, tsmd); +} + static void freeData(ModifierData *md) { SmokeModifierData *smd = (SmokeModifierData*) md; @@ -117,7 +127,7 @@ ModifierTypeInfo modifierType_Smoke = { | eModifierTypeFlag_UsesPointCache | eModifierTypeFlag_Single, - /* copyData */ 0, + /* copyData */ copyData, /* deformVerts */ deformVerts, /* deformVertsEM */ 0, /* deformMatricesEM */ 0, |