[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x Object.c blender/source/blender/python/api2_2x/doc Object.py

Martin Poirier theeth at yahoo.com
Fri Jul 15 07:30:58 CEST 2005


theeth (Martin Poirier) 2005/07/15 07:30:58 CEST

  Modified files:
    blender/source/blender/python/api2_2x Object.c 
    blender/source/blender/python/api2_2x/doc Object.py 
  
  Log:
  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.
  
  Revision  Changes    Path
  1.124     +229 -31   blender/source/blender/python/api2_2x/Object.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Object.c.diff?r1=1.123&r2=1.124&cvsroot=bf-blender>
  1.36      +48 -2     blender/source/blender/python/api2_2x/doc/Object.py
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/doc/Object.py.diff?r1=1.35&r2=1.36&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list