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-04-26 07:42:38 +0400
committerMatt Ebb <matt@mke3.net>2010-04-26 07:42:38 +0400
commitf85fe4d633a565106048f1e9511894d2539e78a6 (patch)
tree46af608051dc8cf1f93873ec4675757e207dcc5c /source/blender/blenkernel/BKE_constraint.h
parent47e1f253c59c3108159732c30da89a7ad154261b (diff)
Pass constraint names as operator properties in constraint operators
This is similar to commit revision 22078, but for constraint operators rather than modifiers, making it possible to use them from scripting.
Diffstat (limited to 'source/blender/blenkernel/BKE_constraint.h')
-rw-r--r--source/blender/blenkernel/BKE_constraint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_constraint.h b/source/blender/blenkernel/BKE_constraint.h
index 9c5e89bff76..94863e15e46 100644
--- a/source/blender/blenkernel/BKE_constraint.h
+++ b/source/blender/blenkernel/BKE_constraint.h
@@ -130,7 +130,8 @@ void free_constraint_data(struct bConstraint *con);
/* Constraint API function prototypes */
struct bConstraint *constraints_get_active(struct ListBase *list);
void constraints_set_active(ListBase *list, struct bConstraint *con);
-
+struct bConstraint *constraints_findByName(struct ListBase *list, const char *name);
+
struct bConstraint *add_ob_constraint(struct Object *ob, const char *name, short type);
struct bConstraint *add_pose_constraint(struct Object *ob, struct bPoseChannel *pchan, const char *name, short type);