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.
This commit is contained in:
2010-04-26 03:42:38 +00:00
parent 47e1f253c5
commit f85fe4d633
3 changed files with 183 additions and 37 deletions

View File

@@ -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);