clear active object when hiding unselected objects too.

This commit is contained in:
Campbell Barton
2012-05-30 06:37:40 +00:00
parent f5011d3aaa
commit d4c7f2d53d

View File

@@ -197,6 +197,9 @@ static int object_hide_view_set_exec(bContext *C, wmOperator *op)
if (!(base->flag & SELECT)) {
base->object->restrictflag |= OB_RESTRICT_VIEW;
changed = 1;
if (base == BASACT) {
ED_base_object_activate(C, NULL);
}
}
}
}