diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-04-27 15:16:35 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-04-27 15:16:35 +0400 |
commit | 01335fc7bbc339183a8828b37f905608f7d1a028 (patch) | |
tree | 971ebe3c746ece8ceecc40d67be5e4ad2664c3fd /source/blender/blenkernel/BKE_deform.h | |
parent | 0a9dc31c8b05ad479eaf22cf99300a9385d7d8c7 (diff) |
Bugfix:
Previous versions of Blender allowed Vertex Groups to be nameless, which
shouldn't be allowed. This caused problems with rigs from previous versions of Blender being loaded in 2.43+ versions, as the new VGroup feature for the
Armature modifier mis-identified these nameless group(s) as being the Vertex Group
to be used. As well as the checks done when renaming VGroups (from another commit), files created prior to and in 2.43 will have all such groups given default
names.
Code notes:
* I've moved the unique_vertexgroup_name function from src to blenkernel like for
constraints
* Formatting in deform.c tidied up a bit
Diffstat (limited to 'source/blender/blenkernel/BKE_deform.h')
-rw-r--r-- | source/blender/blenkernel/BKE_deform.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_deform.h b/source/blender/blenkernel/BKE_deform.h index 5888975feb6..de0dddabfd3 100644 --- a/source/blender/blenkernel/BKE_deform.h +++ b/source/blender/blenkernel/BKE_deform.h @@ -43,9 +43,10 @@ struct ListBase; struct bDeformGroup; void copy_defgroups (struct ListBase *lb1, struct ListBase *lb2); -struct bDeformGroup* copy_defgroup (struct bDeformGroup *ingroup); +struct bDeformGroup *copy_defgroup (struct bDeformGroup *ingroup); struct bDeformGroup *get_named_vertexgroup (Object *ob, char *name); -int get_defgroup_num (struct Object *ob, struct bDeformGroup *dg); +int get_defgroup_num (struct Object *ob, struct bDeformGroup *dg); +void unique_vertexgroup_name (struct bDeformGroup *dg, struct Object *ob); #endif |