Blender Git Commit Log

Git Commits -> Revision 6f264a0

Revision 6f264a0 by Martin Poirier (master)
July 15, 2005, 05:30 (GMT)
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.

Commit Details:

Full Hash: 6f264a0e5b8ae310d31e3d82c42b78532fec47b6
SVN Revision: 4744
Parent Commit: 5332854
Lines Changed: +276, -32

2 Modified Paths:

/source/blender/python/api2_2x/doc/Object.py (+48, -2) (Diff)
/source/blender/python/api2_2x/Object.c (+228, -30) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021