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:
authorMatt Ebb <matt@mke3.net>2006-11-28 00:52:34 +0300
committerMatt Ebb <matt@mke3.net>2006-11-28 00:52:34 +0300
commitd2c2df27286b0cd425170dc95553a4485965f8d3 (patch)
tree3eaef154dd26cc8b6b1c891e9eaf14b16a9a3f57 /source/blender/src/editview.c
parent074efb5e747d42bd0b8196b1d4dc1d0cf01d12aa (diff)
Small fixes for outliner stuff
* Fixed #5294 unselectable objects catching repeated selection clicks in front of other objects * Invisible objects stay invisible when other objects are edited
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r--source/blender/src/editview.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index 2aedee5e43d..de7fd8f5cf4 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -1354,6 +1354,14 @@ void mouse_select(void)
base= startbase;
while(base) {
+ /* skip objects with select restriction, to prevent prematurely ending this loop
+ * with an un-selectable choice */
+ if (base->object->restrictflag & OB_RESTRICT_SELECT) {
+ base=base->next;
+ if(base==NULL) base= FIRSTBASE;
+ if(base==startbase) break;
+ }
+
if(base->lay & G.vd->lay) {
for(a=0; a<hits; a++) {
if(has_bones) {