diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-03-08 05:16:37 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-03-08 05:16:37 +0300 |
commit | b13cd8226e758c44c4393bb02bdeeaa6e8d36795 (patch) | |
tree | ea9bef5efd47793fd8976a4cace1bb2a576b6afa /source/blender/blenkernel/BKE_constraint.h | |
parent | 21dd86a159faf0ee3eb0f4629caf434034ff549c (diff) |
Bugfix #8478: Constraints PyApi for setting targetspace non-functional
Finishing off some unfinished business (from the multi-target constraints work), it is now possible to get/set target-space for constraints where this is relevant.
For this to be possible, target-space setting(s) are now always presented as a list of ints, with each int representing the target-space setting for the relevant target.
Constraints C-API note:
get_targets function now needs to return the number of targets the constraint can have
Diffstat (limited to 'source/blender/blenkernel/BKE_constraint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_constraint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_constraint.h b/source/blender/blenkernel/BKE_constraint.h index a5578377263..4ad7de7a583 100644 --- a/source/blender/blenkernel/BKE_constraint.h +++ b/source/blender/blenkernel/BKE_constraint.h @@ -84,8 +84,8 @@ typedef struct bConstraintTypeInfo { void (*new_data)(void *cdata); /* target handling function pointers */ - /* for multi-target constraints: return that list; otherwise make a temporary list */ - void (*get_constraint_targets)(struct bConstraint *con, struct ListBase *list); + /* for multi-target constraints: return that list; otherwise make a temporary list (returns number of targets) */ + int (*get_constraint_targets)(struct bConstraint *con, struct ListBase *list); /* for single-target constraints only: flush data back to source data, and the free memory used */ void (*flush_constraint_targets)(struct bConstraint *con, struct ListBase *list, short nocopy); |