Blender Git Loki
Git Commits -> Revision 3a84791
Revision 3a84791 by Joseph Eagar (master) December 16, 2006, 23:54 (GMT) |
=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. |
Commit Details:
Full Hash: 3a84791b530ab2fdb5b0e9eccc7b77ac131e93a0
Parent Commit: 47ee194
Lines Changed: +413, -555