diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-28 23:48:09 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-28 23:49:23 +0300 |
commit | 5537117366db2a1af118a06ac89ba223de8c690e (patch) | |
tree | ff74aaf159ad51d79a7b653538005eb7900cb208 /source/blender/modifiers/intern/MOD_subsurf.c | |
parent | 147e22ef700124dcbaa5576b72a2a77e73adf350 (diff) |
Fix several missing cases of copy func for modifiers.
Any time a modifier data has non-ID pointer, it should have own copy
function (and also take care of proper init/reset in its init callback).
Diffstat (limited to 'source/blender/modifiers/intern/MOD_subsurf.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_subsurf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_subsurf.c b/source/blender/modifiers/intern/MOD_subsurf.c index 3cabd1131cb..347ac306f3d 100644 --- a/source/blender/modifiers/intern/MOD_subsurf.c +++ b/source/blender/modifiers/intern/MOD_subsurf.c @@ -75,6 +75,7 @@ static void copyData(const ModifierData *md, ModifierData *target, const int fla modifier_copyData_generic(md, target, flag); tsmd->emCache = tsmd->mCache = NULL; + tsmd->subdiv = NULL; } static void freeData(ModifierData *md) |