[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x IDProp.h IDProp.c Blender.c blender/source/blender/blenkernel BKE_idprop.h blender/source/blender/blenkernel/intern idprop.c

Joseph Eagar joeedh at gmail.com
Sun Dec 17 00:54:45 CET 2006


joeedh (Joseph Eagar) 2006/12/17 00:54:45 CET

  Modified files:
    blender/source/blender/python/api2_2x IDProp.h IDProp.c 
                                          Blender.c 
    blender/source/blender/blenkernel BKE_idprop.h 
    blender/source/blender/blenkernel/intern idprop.c 
  
  Log:
  =IDProperties Python update=
  
  Updated id properties interface as per
  discussed in python meeting.  Basically,
  id properties are now entirely accessed
  through the dict-like interface if IDGroupType.
  Also, tp_getsetters are used throughout the code
  now.
  
  Using the dict interface allowed for a major cleanup
  of the wrapping code.  The biggest change is that ID
  properties are no longer wrapped in a structure with 
  .type .name and .data members; instead when you get
  properties from the group it returns the direct value.
  Ints, strings and floats return simple python types,
  while arrays and groups return special wrappers though.
  
  This means to detect the type of an ID property, you
  have to use type().  For string and int types this is
  easy; for group and array types (which of course have
  their own wrappers) you use type() with Blender.IDGroupType
  or Blender.IDArrayType.
  
  Update of epydocs plus a temporary gui script will be
  forthcoming; the gui script will be removed before release
  as of course by then we'll have a built-in gui for id
  properties.
  
  
  
  Revision  Changes    Path
  1.4       +4 -0      blender/source/blender/python/api2_2x/IDProp.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/IDProp.h.diff?r1=1.3&r2=1.4&cvsroot=bf-blender>
  1.9       +385 -555  blender/source/blender/python/api2_2x/IDProp.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/IDProp.c.diff?r1=1.8&r2=1.9&cvsroot=bf-blender>
  1.91      +8 -1      blender/source/blender/python/api2_2x/Blender.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Blender.c.diff?r1=1.90&r2=1.91&cvsroot=bf-blender>
  1.6       +4 -0      blender/source/blender/blenkernel/BKE_idprop.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/BKE_idprop.h.diff?r1=1.5&r2=1.6&cvsroot=bf-blender>
  1.7       +13 -0     blender/source/blender/blenkernel/intern/idprop.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/idprop.c.diff?r1=1.6&r2=1.7&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list