From 107486e67378779cd53d13c91df5afb1c858c1fa Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 6 Feb 2018 18:37:37 -0200 Subject: Fix poll for OUTLINER_OT_object_remove_from_collection Outliner groups mode support no filtering. --- source/blender/editors/space_outliner/outliner_collections.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c index 14e27bcafa9..ed01e003030 100644 --- a/source/blender/editors/space_outliner/outliner_collections.c +++ b/source/blender/editors/space_outliner/outliner_collections.c @@ -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; } -- cgit v1.2.3