From 754f93f30d7898dcfabf818066ea99c19fcba37c Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 25 May 2013 17:42:20 +0000 Subject: 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. --- source/blender/editors/space_view3d/drawobject.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') 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 { -- cgit v1.2.3