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/blenkernel/intern | |
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/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 27132a93454..70a5a5220a0 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -522,6 +522,12 @@ void unique_constraint_name (bConstraint *con, ListBase *list) int exists = 0; bConstraint *curcon; + /* See if we are given an empty string */ + if (con->name[0] == '\0') { + /* give it default name first */ + strcpy (con->name, "Const"); + } + /* See if we even need to do this */ for (curcon = list->first; curcon; curcon=curcon->next){ if (curcon!=con){ |