Blender Git Commit Log
Git Commits -> Revision 7f2f9f0
Revision 7f2f9f0 by Campbell Barton (gooseberry, gooseberry_farm, hair_immediate_fixes, hair_system, temp_constraint_volume, temp_hair_flow, temp_hair_modifiers, temp_motionpaths) 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