Fix object selection in 3D View

This commit is contained in:
Julian Eisel 2017-02-09 20:49:11 +01:00
parent 9e3cf0c2e8
commit ca9c1de33e
1 changed files with 1 additions and 2 deletions

View File

@ -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)))
{