Fix poll for OUTLINER_OT_object_remove_from_collection

Outliner groups mode support no filtering.
This commit is contained in:
Dalai Felinto 2018-02-06 18:37:37 -02:00
parent fcb430afba
commit 107486e673
1 changed files with 4 additions and 2 deletions

View File

@ -571,8 +571,10 @@ static int object_collection_remove_poll(bContext *C)
return 0;
}
if ((so->filter & (SO_FILTER_ENABLE | SO_FILTER_NO_COLLECTION)) ==
(SO_FILTER_ENABLE | SO_FILTER_NO_COLLECTION))
/* Groups don't support filtering. */
if ((so->outlinevis != SO_GROUPS) &&
((so->filter & (SO_FILTER_ENABLE | SO_FILTER_NO_COLLECTION)) ==
(SO_FILTER_ENABLE | SO_FILTER_NO_COLLECTION)))
{
return 0;
}