From f85fe4d633a565106048f1e9511894d2539e78a6 Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Mon, 26 Apr 2010 03:42:38 +0000 Subject: 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. --- source/blender/blenkernel/BKE_constraint.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_constraint.h') 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); -- cgit v1.2.3