diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2016-01-18 22:00:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-20 03:43:09 +0300 |
commit | bda0820d575061fca3514281f81f04870bbd495e (patch) | |
tree | bd151d7e846b0011a33e5afd4d11d69a5fa027f6 /source | |
parent | 5feb3688fb6a6191673477d673f864310673b823 (diff) |
Support multi-paint & show zero-weights as black
Specifically, when only one bone is selected and it's not really active.
(With multiple bones on the other hand that behavior is forced on,
since multi-paint can't modify purely zero weight verts and that's important.)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 6 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index 9fc438319cb..b5e6b6c4bac 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -1333,9 +1333,9 @@ typedef struct DMWeightColorInfo { static int dm_drawflag_calc(const ToolSettings *ts) { - return ((ts->multipaint ? CALC_WP_MULTIPAINT : - /* CALC_WP_GROUP_USER_ACTIVE or CALC_WP_GROUP_USER_ALL*/ - (1 << ts->weightuser)) | + return ((ts->multipaint ? CALC_WP_MULTIPAINT : 0) | + /* CALC_WP_GROUP_USER_ACTIVE or CALC_WP_GROUP_USER_ALL*/ + (1 << ts->weightuser) | (ts->auto_normalize ? CALC_WP_AUTO_NORMALIZE : 0)); } diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 434a6c24952..2c2b49c8c40 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -2109,7 +2109,7 @@ static void rna_def_tool_settings(BlenderRNA *brna) prop = RNA_def_property(srna, "vertex_group_user", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "weightuser"); RNA_def_property_enum_items(prop, draw_groupuser_items); - RNA_def_property_ui_text(prop, "Mask Non-Group Vertices", "Display unweighted vertices (multi-paint overrides)"); + RNA_def_property_ui_text(prop, "Mask Non-Group Vertices", "Display unweighted verticess"); RNA_def_property_update(prop, 0, "rna_Scene_update_active_object_data"); prop = RNA_def_property(srna, "vertex_group_subset", PROP_ENUM, PROP_NONE); |