From 567ee32f14304a462e59bde2de92b10861ad7c86 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 16 Nov 2009 11:11:16 +0000 Subject: - fcurve modifiers.new()/remove()/active - renamed .add() to .new() for rna collection functions since they dont add an existing item. - remove 'name' as an argument from the new driver target function, better to keep the api minimal and let scripters use the data api for editing values after. - added some api functions to keep rna api from becoming a mess. --- source/blender/blenkernel/BKE_constraint.h | 7 +++++++ 1 file changed, 7 insertions(+) (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 7e0bb9fa08e..7bb17d9a0e0 100644 --- a/source/blender/blenkernel/BKE_constraint.h +++ b/source/blender/blenkernel/BKE_constraint.h @@ -105,6 +105,13 @@ bConstraintTypeInfo *get_constraint_typeinfo(int type); 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); +struct bConstraint *find_active_constraint(ListBase *constraints); +void set_active_constraint(ListBase *constraints, struct bConstraint *con); + + +int remove_constraint(ListBase *constraints, struct bConstraint *con); +int remove_constraint_index(ListBase *constraints, int index); + /* ---------------------------------------------------------------------------- */ /* Useful macros for testing various common flag combinations */ -- cgit v1.2.3