Outliner: rename filter "invisible" to "hidden"
authorNathan Craddock <nzcraddock@gmail.com>
Mon, 19 Aug 2019 14:20:13 +0000 (08:20 -0600)
committerNathan Craddock <nzcraddock@gmail.com>
Mon, 19 Aug 2019 14:20:13 +0000 (08:20 -0600)
No functional changes. Renames the "invisible" object filter to
"Hidden" to be more consistent.

source/blender/editors/space_outliner/outliner_tree.c
source/blender/makesdna/DNA_space_types.h
source/blender/makesrna/intern/rna_space.c

index ec5510cdf8490c296cd550cafeddd68c23c2ee59..3c693cc5e2b06728220123f4df6825120b6bb2e1 100644 (file)
@@ -2008,8 +2008,8 @@ static int outliner_exclude_filter_get(SpaceOutliner *soops)
     case SO_FILTER_OB_VISIBLE:
       exclude_filter |= SO_FILTER_OB_STATE_VISIBLE;
       break;
-    case SO_FILTER_OB_INVISIBLE:
-      exclude_filter |= SO_FILTER_OB_STATE_INVISIBLE;
+    case SO_FILTER_OB_HIDDEN:
+      exclude_filter |= SO_FILTER_OB_STATE_HIDDEN;
       break;
     case SO_FILTER_OB_SELECTED:
       exclude_filter |= SO_FILTER_OB_STATE_SELECTED;
@@ -2089,7 +2089,7 @@ static bool outliner_element_visible_get(ViewLayer *view_layer,
           return false;
         }
       }
-      else if (exclude_filter & SO_FILTER_OB_STATE_INVISIBLE) {
+      else if (exclude_filter & SO_FILTER_OB_STATE_HIDDEN) {
         if ((base->flag & BASE_VISIBLE) != 0) {
           return false;
         }
index 67f058c298bcd5b97a0d7b6f1296dd3f83143fc4..ad846fd0476d7311298a9bfaecd829d330f81328 100644 (file)
@@ -287,11 +287,11 @@ typedef enum eSpaceOutliner_Filter {
   SO_FILTER_NO_OB_CAMERA = (1 << 10),
   SO_FILTER_NO_OB_OTHERS = (1 << 11),
 
-  SO_FILTER_UNUSED_12 = (1 << 12),          /* cleared */
-  SO_FILTER_OB_STATE_VISIBLE = (1 << 13),   /* Not set via DNA. */
-  SO_FILTER_OB_STATE_INVISIBLE = (1 << 14), /* Not set via DNA. */
-  SO_FILTER_OB_STATE_SELECTED = (1 << 15),  /* Not set via DNA. */
-  SO_FILTER_OB_STATE_ACTIVE = (1 << 16),    /* Not set via DNA. */
+  SO_FILTER_UNUSED_12 = (1 << 12),         /* cleared */
+  SO_FILTER_OB_STATE_VISIBLE = (1 << 13),  /* Not set via DNA. */
+  SO_FILTER_OB_STATE_HIDDEN = (1 << 14),   /* Not set via DNA. */
+  SO_FILTER_OB_STATE_SELECTED = (1 << 15), /* Not set via DNA. */
+  SO_FILTER_OB_STATE_ACTIVE = (1 << 16),   /* Not set via DNA. */
   SO_FILTER_NO_COLLECTION = (1 << 17),
 
   SO_FILTER_ID_TYPE = (1 << 18),
@@ -302,7 +302,7 @@ typedef enum eSpaceOutliner_Filter {
    SO_FILTER_NO_OB_LAMP | SO_FILTER_NO_OB_CAMERA | SO_FILTER_NO_OB_OTHERS)
 
 #define SO_FILTER_OB_STATE \
-  (SO_FILTER_OB_STATE_VISIBLE | SO_FILTER_OB_STATE_INVISIBLE | SO_FILTER_OB_STATE_SELECTED | \
+  (SO_FILTER_OB_STATE_VISIBLE | SO_FILTER_OB_STATE_HIDDEN | SO_FILTER_OB_STATE_SELECTED | \
    SO_FILTER_OB_STATE_ACTIVE)
 
 #define SO_FILTER_ANY \
@@ -313,7 +313,7 @@ typedef enum eSpaceOutliner_Filter {
 typedef enum eSpaceOutliner_StateFilter {
   SO_FILTER_OB_ALL = 0,
   SO_FILTER_OB_VISIBLE = 1,
-  SO_FILTER_OB_INVISIBLE = 2,
+  SO_FILTER_OB_HIDDEN = 2,
   SO_FILTER_OB_SELECTED = 3,
   SO_FILTER_OB_ACTIVE = 4,
 } eSpaceOutliner_StateFilter;
index ef4406db84da5370d470f2c39a84443ecd4e63ec..645373c5795a95b3195010f6b2ba70e81cd1b200 100644 (file)
@@ -2777,7 +2777,7 @@ static void rna_def_space_outliner(BlenderRNA *brna)
   static const EnumPropertyItem filter_state_items[] = {
       {SO_FILTER_OB_ALL, "ALL", 0, "All", "Show all objects in the view layer"},
       {SO_FILTER_OB_VISIBLE, "VISIBLE", 0, "Visible", "Show visible objects"},
-      {SO_FILTER_OB_INVISIBLE, "INVISIBLE", 0, "Invisible", "Show invisible objects"},
+      {SO_FILTER_OB_HIDDEN, "HIDDEN", 0, "Hidden", "Show hidden objects"},
       {SO_FILTER_OB_SELECTED, "SELECTED", 0, "Selected", "Show selected objects"},
       {SO_FILTER_OB_ACTIVE, "ACTIVE", 0, "Active", "Show only the active object"},
       {0, NULL, 0, NULL, NULL},