From 3fc3a9473f680bc44c908d725f56fae39c3ce0d5 Mon Sep 17 00:00:00 2001 From: Chris Want Date: Sun, 16 Feb 2003 00:12:06 +0000 Subject: It turns out that the "Pressing AKEY to deselect all objects still leaves one object center pink" bug was actually designed by somebody to mark the active object (which need not necessarily be selected). I've added a couple of source comments to explain this so the next person trying to fix this doesn't bother. --- source/blender/src/drawobject.c | 3 +++ source/blender/src/space.c | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index 3ea7b54cd31..146e65dbb71 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -3607,6 +3607,9 @@ void draw_object(Base *base) } else { if(base->flag & SELECT) rect= rect_sel; + /* The center of the active object (which need not + * be selected) gets drawn as if it were selected + */ else if(base==(G.scene->basact)) rect= rect_sel; else rect= rect_desel; } diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 01813ef8026..fb31d498a64 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -633,7 +633,13 @@ void winqread3d(unsigned short event, short val, char ascii) } else { if(G.f & G_FACESELECT) deselectall_tface(); - else deselectall(); + else { + /* by design, the center of the active object + * (which need not necessarily by selected) will + * still be drawn as if it were selected. + */ + deselectall(); + } } } break; -- cgit v1.2.3