Blender Git Loki
Git Commits -> Revision aa77bbd
Revision aa77bbd by Nicholas Bishop (master) May 10, 2012, 20:33 (GMT) |
Add DNA and customdata entries for paint masks. CD_PAINT_MASK is a layer of per-vertex floats for non-multires meshes. Multires meshes use CD_GRID_PAINT_MASK, which is a layer of per-loop GridPaintMask structures. GridPaintMask is similar to MDisp, but contains an array of scalar floats. Note: the GridPaintMask could be folded into MDisp, but this way should be easier to add mask layers in the future (if we do fold GridPaintMask into MDisp, the mask array should probably be an array of arrays with a 'totmask' field so that mask layers can be easily supported.) Includes blenload read/write support for CD_PAINT_MASK and CD_GRID_PAINT_MASK. |
Commit Details:
Full Hash: aa77bbd38daff45725d7e726e89f2e681cee863d
SVN Revision: 46516
Parent Commit: f751d0f
Lines Changed: +106, -7
5 Modified Paths:
/source/blender/blenkernel/intern/customdata.c (+47, -5) (Diff)
/source/blender/blenloader/intern/readfile.c (+15, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+26, -0) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+8, -2) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+10, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+15, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+26, -0) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+8, -2) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+10, -0) (Diff)