Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-01-29 02:45:12 +0300
committerMatt Ebb <matt@mke3.net>2010-01-29 02:45:12 +0300
commit6d1895e8460c6fbbdfd2f3982682e78c0de2c128 (patch)
tree1b7e3358c518f137af780a6b7af2e2c4e30f81ac /source/blender/editors/object
parentcb499c9df4dd1983f74810024119dc204075c0db (diff)
* More tweaks to previous cleaning
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_constraint.c45
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)
{