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.
This commit is contained in:
committed by
Campbell Barton
parent
b0b310e65d
commit
754096e670
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user