diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-03-02 10:30:52 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-03-02 10:30:52 +0300 |
commit | b5343551acd7069c5ba9bd028b42a11fab2f8e5e (patch) | |
tree | 93ba03676893c6c29e87987e6cfb6dc90dc519a2 /source/blender/src/editdeform.c | |
parent | 335f3424caaaee4a2e7b916ce2375ed7c4bb68d9 (diff) |
Bugfix:
Removed the ability to change the name of a constraint or vertex group
to "" as it was causing problems. Anyway, it shouldn't be allowed.
Diffstat (limited to 'source/blender/src/editdeform.c')
-rw-r--r-- | source/blender/src/editdeform.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/editdeform.c b/source/blender/src/editdeform.c index 1de1778055c..4a3156153ec 100644 --- a/source/blender/src/editdeform.c +++ b/source/blender/src/editdeform.c @@ -691,6 +691,13 @@ void unique_vertexgroup_name (bDeformGroup *dg, Object *ob) if (!ob) return; + + /* See if we are given an empty string */ + if (dg->name[0] == '\0') { + /* give it default name first */ + strcpy (dg->name, "Group"); + } + /* See if we even need to do this */ for (curdef = ob->defbase.first; curdef; curdef=curdef->next){ if (dg!=curdef){ |