Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-04-18 18:47:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-18 18:47:45 +0400
commit4fde9823fdfe323de4c8d3b76aa75d98ef9362a6 (patch)
tree047f14eeb0a0c71f41a0a70cf0c53bb9e6e8b687 /source/blender/blenkernel/intern/deform.c
parent153081accdc6c8d5779b1d13e1d25555682b9e44 (diff)
possible fix for [#22057] Autoname L/R in bones names center bones as .R
Bone would get a '.' added even when there was no extension. (center limit would still be useful) - name flipping function used sizeof() incorrectly. - ED_lorem should be extern.
Diffstat (limited to 'source/blender/blenkernel/intern/deform.c')
-rw-r--r--source/blender/blenkernel/intern/deform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/deform.c b/source/blender/blenkernel/intern/deform.c
index d9ba6cd6a9d..fecafc701a6 100644
--- a/source/blender/blenkernel/intern/deform.c
+++ b/source/blender/blenkernel/intern/deform.c
@@ -364,10 +364,10 @@ void defgroup_unique_name (bDeformGroup *dg, Object *ob)
void flip_side_name (char *name, const char *from_name, int strip_number)
{
int len;
- char prefix[sizeof((bDeformGroup *)NULL)->name]={""}; /* The part before the facing */
- char suffix[sizeof((bDeformGroup *)NULL)->name]={""}; /* The part after the facing */
- char replace[sizeof((bDeformGroup *)NULL)->name]={""}; /* The replacement string */
- char number[sizeof((bDeformGroup *)NULL)->name]={""}; /* The number extension string */
+ char prefix[sizeof(((bDeformGroup *)NULL)->name)]= {""}; /* The part before the facing */
+ char suffix[sizeof(((bDeformGroup *)NULL)->name)]= {""}; /* The part after the facing */
+ char replace[sizeof(((bDeformGroup *)NULL)->name)]= {""}; /* The replacement string */
+ char number[sizeof(((bDeformGroup *)NULL)->name)]= {""}; /* The number extension string */
char *index=NULL;
len= strlen(from_name);