Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2015-11-03 22:19:03 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2015-11-03 22:19:16 +0300
commit584f439112a705e03edf8724e0c8596380a1e976 (patch)
tree6eb166c67cac9324ae56fb8c876250af0dc36ee7
parent8c25c1c484aef9cde709143085a8e5b9a003b866 (diff)
imp: show alert color if mesh has weight groups but no active group is selected
-rw-r--r--source/blender/blenkernel/intern/DerivedMesh.c5
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;
}