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
path: root/source
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2003-02-16 03:12:06 +0300
committerChris Want <cwant@ualberta.ca>2003-02-16 03:12:06 +0300
commit3fc3a9473f680bc44c908d725f56fae39c3ce0d5 (patch)
treed9759b9eb8990c35598f512fc8b373d0db5cb24f /source
parent8956af99abae0508a68abcf094ec748eb408dbfe (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawobject.c3
-rw-r--r--source/blender/src/space.c8
2 files changed, 10 insertions, 1 deletions
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;