diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-04-25 06:20:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-04-25 06:20:55 +0400 |
commit | 13b1fbd665f3e20780844469a9704ecb2008a996 (patch) | |
tree | 68c6f8c2692cb6506526a4bd9a0224ce053dfeec /source/blender/src/editview.c | |
parent | 0c7e145dcedaf3e22abaead61c1b1cb431a7da0a (diff) |
made blender take hidden objects into account in more situations.
Ctrl+RMB used to select a hidden object as well as "Select Grouped -> Parent"
Also made OOps and data browser check for hidden objects.
Added a countall to hide/unhide objects.
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r-- | source/blender/src/editview.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c index 232a69979bd..086abbaa7a4 100644 --- a/source/blender/src/editview.c +++ b/source/blender/src/editview.c @@ -1183,10 +1183,7 @@ static Base *mouse_select_menu(unsigned int *buffer, int hits, short *mval) char str[32]; for(base=FIRSTBASE; base; base= base->next) { - if(base->lay & G.vd->lay && - (base->object->restrictflag & OB_RESTRICT_SELECT)==0 && - (base->object->restrictflag & OB_RESTRICT_VIEW)==0 - ) { + if BASE_SELECTABLE(base) { baseList[baseCount] = NULL; /* two selection methods, the CTRL select uses max dist of 15 */ @@ -1304,9 +1301,7 @@ void mouse_select(void) else { base= startbase; while(base) { - - if(base->lay & G.vd->lay) { - + if BASE_SELECTABLE(base) { project_short(base->object->obmat[3], &base->sx); temp= abs(base->sx -mval[0]) + abs(base->sy -mval[1]); @@ -1453,7 +1448,7 @@ void mouse_select(void) select_base_v3d(basact, BA_SELECT); } /* also prevent making it active on mouse selection */ - else if (!(basact->object->restrictflag & OB_RESTRICT_SELECT)) { + else if BASE_SELECTABLE(basact) { oldbasact= BASACT; BASACT= basact; |