Blender Git Loki
Git Commits -> Revision ba958be
Revision ba958be by Geoffrey Bantle (master) June 4, 2007, 19:18 (GMT) |
-> Custom Properties for Mesh entities In order to give import/export script authors the ability to add properties to inidividual faces, vertices and edges in the same manner as they are able to do with ID structures three new custom data types have been added to blender for floats, integers and strings. Things to note: -Since property Layers are custom data, they are added to all verts, edges or faces at once. -Only one property layer for each unique property name may exist. In other words, you cannot have a float layer as well as an integer layer both with the same name. -No user interface for this exists at the moment. The following methods and attributes have been added to the Blender.Mesh Python module and it's object types: ->MVert/Edge/FaceSeq: addPropertyLayer(name, type) removePropertyLayer(name) renamePropertyLayer(original name, new name) properties(readonly list.) ->MVert/Edge/Face getProperty(name) setProperty(name, value) ->Mesh module PropertyTypes (readonly dictionary) |
Commit Details:
Full Hash: ba958bea0f4b49f87644fdf02cbc2ebba826a6b8
SVN Revision: 10874
Parent Commit: d5ee6fc
Lines Changed: +479, -18
6 Modified Paths:
/source/blender/blenkernel/intern/customdata.c (+34, -7) (Diff)
/source/blender/blenlib/BLI_editVert.h (+2, -1) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+8, -1) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+12, -0) (Diff)
/source/blender/python/api2_2x/Mesh.c (+410, -7) (Diff)
/source/blender/src/editmesh.c (+13, -2) (Diff)
/source/blender/blenlib/BLI_editVert.h (+2, -1) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+8, -1) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+12, -0) (Diff)
/source/blender/python/api2_2x/Mesh.c (+410, -7) (Diff)
/source/blender/src/editmesh.c (+13, -2) (Diff)