diff options
author | Ton Roosendaal <ton@blender.org> | 2013-05-25 21:42:20 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2013-05-25 21:42:20 +0400 |
commit | 754f93f30d7898dcfabf818066ea99c19fcba37c (patch) | |
tree | 7ff88738d68b3fb88202f2bd98a5aa170256963a /source/blender/editors | |
parent | 7c9f7e7566ea0bf0a0e96a748317b2fe67780c3d (diff) |
Simple usability fix:
Mesh editmode, active face was always drawing same stipple pattern color,
whether face is selected or not.
Now it uses selection color + stipple. Looks much more consistent.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 6c0a5424a82..9517dae762a 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -2369,7 +2369,10 @@ static DMDrawOption draw_dm_faces_sel__setDrawOptions(void *userData, int index) if (!BM_elem_flag_test(efa, BM_ELEM_HIDDEN)) { if (efa == data->efa_act) { - glColor4ubv(data->cols[2]); + if (BM_elem_flag_test(efa, BM_ELEM_SELECT)) + glColor4ubv(data->cols[1]); + else + glColor4ubv(data->cols[2]); return DM_DRAW_OPTION_STIPPLE; } else { |