[Bf-blender-cvs] [754096e] master: Weight Paint: reduce alert color brightness

Alexander Gavrilov noreply at git.blender.org
Wed Jan 20 20:49:56 CET 2016


Commit: 754096e670a87a18cdcbdfeea7abd27bee4592a1
Author: Alexander Gavrilov
Date:   Tue Jan 19 20:30:50 2016 +0300
Branches: master
https://developer.blender.org/rB754096e670a87a18cdcbdfeea7abd27bee4592a1

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.

===================================================================

M	source/blender/blenkernel/intern/DerivedMesh.c

===================================================================

diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c
index fa52920..1577a81 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);




More information about the Bf-blender-cvs mailing list