diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2016-01-19 20:30:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-20 22:42:30 +0300 |
commit | 754096e670a87a18cdcbdfeea7abd27bee4592a1 (patch) | |
tree | 2e986aa694dd342be7865444d43518b8a569957e /source/blender/blenkernel/intern/DerivedMesh.c | |
parent | b0b310e65d0851e87272caeb7cf6fb0119212a44 (diff) |
Weight Paint: reduce alert color brightness
This condition can actually happen quite often if weight painting for
a rig that uses separate control bones, so the color shouldn't be so
bright that it's hard to look at for a significant amount of time.
Diffstat (limited to 'source/blender/blenkernel/intern/DerivedMesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index fa529208101..1577a818180 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -1472,7 +1472,8 @@ static void calc_weightpaint_vert_array( else { unsigned char col[4]; if ((ob->actdef == 0) && !BLI_listbase_is_empty(&ob->defbase)) { - ARRAY_SET_ITEMS(col, 0xff, 0, 0xff, 0xff); + /* color-code for missing data (full brightness isn't easy on the eye). */ + ARRAY_SET_ITEMS(col, 0xa0, 0, 0xa0, 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); |