diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-29 02:45:12 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-29 02:45:12 +0300 |
commit | 6d1895e8460c6fbbdfd2f3982682e78c0de2c128 (patch) | |
tree | 1b7e3358c518f137af780a6b7af2e2c4e30f81ac /source/blender/editors/object/object_constraint.c | |
parent | cb499c9df4dd1983f74810024119dc204075c0db (diff) |
* More tweaks to previous cleaning
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 497b5e82e26..9c465a75cd0 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -624,51 +624,6 @@ void CONSTRAINT_OT_childof_clear_inverse (wmOperatorType *ot) /***************************** BUTTONS ****************************/ -/* Rename the given constraint, con already has the new name */ -void ED_object_constraint_rename(Object *ob, bConstraint *con, char *oldname) -{ - bConstraint *tcon; - ListBase *conlist= NULL; - int from_object= 0; - - /* get context by searching for con (primitive...) */ - for (tcon= ob->constraints.first; tcon; tcon= tcon->next) { - if (tcon==con) - break; - } - - if (tcon) { - conlist= &ob->constraints; - from_object= 1; - } - else if (ob->pose) { - bPoseChannel *pchan; - - for (pchan=ob->pose->chanbase.first; pchan; pchan=pchan->next) { - for (tcon= pchan->constraints.first; tcon; tcon= tcon->next) { - if (tcon==con) - break; - } - if (tcon) - break; - } - - if (tcon) { - conlist= &pchan->constraints; - } - } - - if (conlist==NULL) { - printf("rename constraint failed\n"); /* should not happen in UI */ - return; - } - - /* first make sure it's a unique name within context */ - unique_constraint_name(con, conlist); -} - - - void ED_object_constraint_set_active(Object *ob, bConstraint *con) { |