diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2017-02-09 22:49:11 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-02-09 22:49:53 +0300 |
commit | ca9c1de33e2f770f0f48d4a1fbde919328dece8f (patch) | |
tree | 8b5292bdeaf0794b107426b80f5d0e9a151a37ed /source/blender/editors/space_view3d | |
parent | 9e3cf0c2e86daa3b9eecc94a2f35c03260c7e7af (diff) |
Fix object selection in 3D View
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index 9c6c832188f..53c91936913 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -1111,8 +1111,7 @@ static void view3d_select_loop(ViewContext *vc, Scene *scene, SceneLayer *sl, Vi v3d->xray = true; /* otherwise it postpones drawing */ for (base = sl->object_bases.first; base; base = base->next) { - if (base->lay & v3d->lay) { - + if ((base->flag & BASE_VISIBLED) != 0) { if ((base->object->restrictflag & OB_RESTRICT_SELECT) || (use_obedit_skip && (scene->obedit->data == base->object->data))) { |