diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-01 09:25:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-01 09:25:30 +0400 |
commit | af39f2636019e387dc9f572249c09ad9cf9631bc (patch) | |
tree | d509863aca32cb86a570b0c4ace934937938cdbc /source/blender/modifiers | |
parent | 9da712a581f59fc7794151fe5f07a4fb396881f2 (diff) |
fix, uvproject modifier wasn't copying the uv layer name,
also edit var names from recent commit to better fit with other functions.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_uvproject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_uvproject.c b/source/blender/modifiers/intern/MOD_uvproject.c index a5d2e0b38c7..922ae8c1e92 100644 --- a/source/blender/modifiers/intern/MOD_uvproject.c +++ b/source/blender/modifiers/intern/MOD_uvproject.c @@ -42,6 +42,7 @@ #include "DNA_object_types.h" #include "BLI_math.h" +#include "BLI_string.h" #include "BLI_uvproject.h" #include "BLI_utildefines.h" @@ -83,6 +84,7 @@ static void copyData(ModifierData *md, ModifierData *target) tumd->aspecty = umd->aspecty; tumd->scalex = umd->scalex; tumd->scaley = umd->scaley; + BLI_strncpy(tumd->uvlayer_name, umd->uvlayer_name, sizeof(umd->uvlayer_name)); } static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *UNUSED(md)) |