diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-26 14:43:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-26 14:43:23 +0400 |
commit | 7c58ec9337761291f9489996f2e9d630b0f6ad4e (patch) | |
tree | 104dc3dd151bb4412ce47bf42c7086a9181ce8b8 /source/blender/modifiers/intern/MOD_simpledeform.c | |
parent | 2945f512ba46f13723c154697b7c7525b0f2aff7 (diff) |
use math functions for copying matrix/vector types, also cast const pointers for freeing (clang error's out otherwise)
Diffstat (limited to 'source/blender/modifiers/intern/MOD_simpledeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_simpledeform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_simpledeform.c b/source/blender/modifiers/intern/MOD_simpledeform.c index d6dc8482ee2..d260312fe3d 100644 --- a/source/blender/modifiers/intern/MOD_simpledeform.c +++ b/source/blender/modifiers/intern/MOD_simpledeform.c @@ -262,7 +262,7 @@ static void copyData(ModifierData *md, ModifierData *target) tsmd->axis = smd->axis; tsmd->origin = smd->origin; tsmd->factor = smd->factor; - memcpy(tsmd->limit, smd->limit, sizeof(tsmd->limit)); + copy_v2_v2(tsmd->limit, smd->limit); BLI_strncpy(tsmd->vgroup_name, smd->vgroup_name, sizeof(tsmd->vgroup_name)); } |