diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-07-15 09:30:58 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-07-15 09:30:58 +0400 |
commit | 6f264a0e5b8ae310d31e3d82c42b78532fec47b6 (patch) | |
tree | 0f6dd83ed23f92ccc9970dd679ec2dc27bbc7729 /source/blender/blenkernel/BKE_key.h | |
parent | 5332854a7b3b6a995919b0d42572bb8b0e86a739 (diff) |
BPY Support for Deform Parenting and Vertex Parenting
This adds two new method to the BPY Object type:
- makeParentDeform
- makeParentVertex
Both are based on makeParent. In fact, I splitted off the parenting
part of makeParent into an internal function so that all can reuse it. I
also added DEP_graph refresh flag that where missing.
makeParentDeform sets the parent type accordingly for correct
deformation (armature and curve) and checks if the parent and childs are of the
correct type for deformation.
makeParentVertex takes as additional mandatory argument a tuple of
indices to tell the parent which vertex to use. It does some object type
checking too.
Also included documentation. :)
Test file is in the patch there: http://projects.blender.org/tracker/?func=detail&atid=127&aid=2833&group_id=9
Note to Ton: When doing vertex parenting, the dashed parent line is only updated correctly if the objects are on screen when calling the function. If they aren't, the line is wrong and is only corrected when another recalc is called on the parent or child.
Diffstat (limited to 'source/blender/blenkernel/BKE_key.h')
0 files changed, 0 insertions, 0 deletions