diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-22 14:52:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-22 14:52:30 +0400 |
commit | 2462d4976ba65a8639445b19e8ac13df7ef1a9fa (patch) | |
tree | 21833fddf6583361d60d837599439edb9d04d5a0 /source/blender/blenkernel | |
parent | 4e4b7971657b5211984989ccf3068cf9518a8e1c (diff) |
possible fix [#23331] Hidden Bones Contribute to Axis Normal
cant redo this bug but noticed a number of places where bone selection/hidden state isn't being set properly.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index b1492fce9d4..8c8e4bb034f 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -1130,8 +1130,8 @@ static int check_for_dupid(ListBase *lb, ID *id, char *name) * rather than just chopping and adding numbers, * shave off the end chars until we have a unique name. * Check the null terminators match as well so we dont get Cube.000 -> Cube.00 */ - if (nr==0 && name[left_len]== left[left_len]) { - int len = strlen(name)-1; + if (nr==0 && name[left_len]== '\0') { + int len = left_len-1; idtest= is_dupid(lb, id, name); while (idtest && len> 1) { |