Blender Git Loki

Git Commits -> Revision 7f2f9f0

November 8, 2014, 18:51 (GMT)
Exposing customdata mask layer (CD_PAINT_MASK) to Python API

There are several more or less new customdata layers that currently cannot be accessed via Python (or some are exposed via BMesh API but not via Mesh API). This patch aims to expose one of those layers - CD_PAINT_MASK.
It'd be pretty useful for existing and future addons targeting sculpt workflow. Currently to get some access to the mask we employ a hackish approach via hiding/revealing masked vertices, this adds mode switches and doesn't allow to get actual mask values which could be useful if converted into vertex group weights for later use in e.g. modifiers. With this patch we'd be able to access mask data directly.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Subscribers: radcapricorn

Projects: #bf_blender

Differential Revision: https://developer.blender.org/D782

Commit Details:

Full Hash: 7f2f9f0acdc42f54625e1a71592ea9919173879f
Parent Commit: 75f518c
Lines Changed: +78, -0

2 Modified Paths:

/source/blender/makesrna/intern/rna_mesh.c (+72, -0) (Diff)
/source/blender/python/bmesh/bmesh_py_types_customdata.c (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021