diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-02-13 10:39:43 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-02-13 10:39:43 +0300 |
commit | 90f543ba3aa5d6ee3b436a96d648cd190f66f513 (patch) | |
tree | 8e1fcd259df28a60839087c38f75a31015398054 | |
parent | 51d78b43de2c63a1953dc0002d40b7f145f61e95 (diff) |
Reverting part of 34810
The changes here were breaking old rigs, for example the right eyeball
in the Sintel rig (which uses the Mirror Modifier and its vertex-group
mirroring functionality)
-rw-r--r-- | source/blender/blenkernel/intern/deform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/deform.c b/source/blender/blenkernel/intern/deform.c index 2014dfe6d0a..b90ded5c78d 100644 --- a/source/blender/blenkernel/intern/deform.c +++ b/source/blender/blenkernel/intern/deform.c @@ -348,20 +348,20 @@ void flip_side_name (char *name, const char *from_name, int strip_number) len= strlen(from_name); if(len<3) return; // we don't do names like .R or .L - BLI_strncpy(name, from_name, sizeof(name)); + strcpy(name, from_name); /* We first check the case with a .### extension, let's find the last period */ if(isdigit(name[len-1])) { index= strrchr(name, '.'); // last occurrence if (index && isdigit(index[1]) ) { // doesnt handle case bone.1abc2 correct..., whatever! if(strip_number==0) - BLI_strncpy(number, index, sizeof(number)); + strcpy(number, index); *index= 0; len= strlen(name); } } - BLI_strncpy(prefix, name, sizeof(prefix)); + strcpy(prefix, name); #define IS_SEPARATOR(a) ((a)=='.' || (a)==' ' || (a)=='-' || (a)=='_') |