From 03fc491048f9efef67033a91d5a37ee0d9d7ec79 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 9 May 2018 13:40:34 +0200 Subject: Outliner: move filter options to popover. --- source/blender/makesdna/DNA_space_types.h | 35 ++++++++++++++++++------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'source/blender/makesdna/DNA_space_types.h') diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 795cd0ee974..292120d1f6e 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -279,12 +279,12 @@ typedef enum eSpaceOutliner_Flag { /* SpaceOops->filter */ typedef enum eSpaceOutliner_Filter { SO_FILTER_SEARCH = (1 << 0), - SO_FILTER_ENABLE = (1 << 1), - SO_FILTER_NO_OBJECT = (1 << 2), + /* SO_FILTER_ENABLE = (1 << 1), */ /* Deprecated */ + /* SO_FILTER_NO_OBJECT = (1 << 2), */ /* Deprecated */ SO_FILTER_NO_OB_CONTENT = (1 << 3), /* Not only mesh, but modifiers, constraints, ... */ SO_FILTER_NO_CHILDREN = (1 << 4), - SO_FILTER_OB_TYPE = (1 << 5), + /* SO_FILTER_OB_TYPE = (1 << 5), */ /* Deprecated */ SO_FILTER_NO_OB_MESH = (1 << 6), SO_FILTER_NO_OB_ARMATURE = (1 << 7), SO_FILTER_NO_OB_EMPTY = (1 << 8), @@ -292,22 +292,25 @@ typedef enum eSpaceOutliner_Filter { SO_FILTER_NO_OB_CAMERA = (1 << 10), SO_FILTER_NO_OB_OTHERS = (1 << 11), - SO_FILTER_OB_STATE = (1 << 12), + /* SO_FILTER_OB_STATE = (1 << 12), */ /* Deprecated */ SO_FILTER_OB_STATE_VISIBLE = (1 << 13), /* Not set via DNA. */ SO_FILTER_OB_STATE_SELECTED = (1 << 14), /* Not set via DNA. */ SO_FILTER_OB_STATE_ACTIVE = (1 << 15), /* Not set via DNA. */ SO_FILTER_NO_COLLECTION = (1 << 16), } eSpaceOutliner_Filter; -#define SO_FILTER_NO_OB_ALL (SO_FILTER_NO_OB_MESH | \ - SO_FILTER_NO_OB_ARMATURE | \ - SO_FILTER_NO_OB_EMPTY | \ - SO_FILTER_NO_OB_LAMP | \ - SO_FILTER_NO_OB_CAMERA | \ - SO_FILTER_NO_OB_OTHERS) +#define SO_FILTER_OB_TYPE (SO_FILTER_NO_OB_MESH | \ + SO_FILTER_NO_OB_ARMATURE | \ + SO_FILTER_NO_OB_EMPTY | \ + SO_FILTER_NO_OB_LAMP | \ + SO_FILTER_NO_OB_CAMERA | \ + SO_FILTER_NO_OB_OTHERS) -#define SO_FILTER_ANY (SO_FILTER_NO_OBJECT | \ - SO_FILTER_NO_OB_CONTENT | \ +#define SO_FILTER_OB_STATE (SO_FILTER_OB_STATE_VISIBLE | \ + SO_FILTER_OB_STATE_SELECTED | \ + SO_FILTER_OB_STATE_ACTIVE) + +#define SO_FILTER_ANY (SO_FILTER_NO_OB_CONTENT | \ SO_FILTER_NO_CHILDREN | \ SO_FILTER_OB_TYPE | \ SO_FILTER_OB_STATE | \ @@ -315,9 +318,11 @@ typedef enum eSpaceOutliner_Filter { /* SpaceOops->filter_state */ typedef enum eSpaceOutliner_StateFilter { - SO_FILTER_OB_VISIBLE = 0, - SO_FILTER_OB_SELECTED = 1, - SO_FILTER_OB_ACTIVE = 2, + SO_FILTER_OB_ALL = 0, + SO_FILTER_OB_VISIBLE = 1, + SO_FILTER_OB_SELECTED = 2, + SO_FILTER_OB_ACTIVE = 3, + SO_FILTER_OB_NONE = 4, } eSpaceOutliner_StateFilter; /* SpaceOops->outlinevis */ -- cgit v1.2.3