diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2015-11-03 22:19:03 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2015-11-03 22:19:16 +0300 |
commit | 584f439112a705e03edf8724e0c8596380a1e976 (patch) | |
tree | 6eb166c67cac9324ae56fb8c876250af0dc36ee7 /source/blender/blenkernel | |
parent | 8c25c1c484aef9cde709143085a8e5b9a003b866 (diff) |
imp: show alert color if mesh has weight groups but no active group is selected
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index 744a154ae78..a5a29f667e5 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -1468,7 +1468,10 @@ static void calc_weightpaint_vert_array( } else { unsigned char col[4]; - if (draw_flag & (CALC_WP_GROUP_USER_ACTIVE | CALC_WP_GROUP_USER_ALL)) { + if ((ob->actdef == 0) && !BLI_listbase_is_empty(&ob->defbase)) { + ARRAY_SET_ITEMS(col, 0xff, 0, 0xff, 0xff); + } + else if (draw_flag & (CALC_WP_GROUP_USER_ACTIVE | CALC_WP_GROUP_USER_ALL)) { copy_v3_v3_char((char *)col, dm_wcinfo->alert_color); col[3] = 255; } |