From 53250f85dbecdc4cdd6eded772972b137f3f8c6c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Nov 2009 19:58:30 +0000 Subject: object.constraints.add()/remove()/active, same for PoseChannel modified internal api for minimal rna wrapper functions. TODO - missing updates for pose channels - typecheck for pose/object constraints --- source/blender/blenkernel/BKE_constraint.h | 3 +++ 1 file changed, 3 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 f957c5e17d4..7e0bb9fa08e 100644 --- a/source/blender/blenkernel/BKE_constraint.h +++ b/source/blender/blenkernel/BKE_constraint.h @@ -102,6 +102,9 @@ typedef struct bConstraintTypeInfo { bConstraintTypeInfo *constraint_get_typeinfo(struct bConstraint *con); 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); + /* ---------------------------------------------------------------------------- */ /* Useful macros for testing various common flag combinations */ -- cgit v1.2.3