diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-31 17:44:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-31 17:46:24 +0300 |
commit | 8d53e8cd029dbec02ba9aea1975d6ff780b161df (patch) | |
tree | 0af4d160f2b7039b76e8149d6658c02cfda11f5a /source/blender/makesrna | |
parent | 361b3eb88e4f8ceaa589827828e17588eda9b9fc (diff) |
UI: hide user preferences from space menu
See T54744
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c index deaf73bc9a5..7596ccb19fa 100644 --- a/source/blender/makesrna/intern/rna_screen.c +++ b/source/blender/makesrna/intern/rna_screen.c @@ -146,7 +146,7 @@ static const EnumPropertyItem *rna_Area_type_itemf(bContext *UNUSED(C), PointerR /* +1 to skip SPACE_EMPTY */ for (const EnumPropertyItem *item_from = rna_enum_space_type_items + 1; item_from->identifier; item_from++) { - if (ELEM(item_from->value, SPACE_TOPBAR, SPACE_STATUSBAR)) { + if (ELEM(item_from->value, SPACE_TOPBAR, SPACE_STATUSBAR, SPACE_USERPREF)) { continue; } RNA_enum_item_add(&item, &totitem, item_from); @@ -167,7 +167,7 @@ static int rna_Area_type_get(PointerRNA *ptr) static void rna_Area_type_set(PointerRNA *ptr, int value) { - if (ELEM(value, SPACE_TOPBAR, SPACE_STATUSBAR)) { + if (ELEM(value, SPACE_TOPBAR, SPACE_STATUSBAR, SPACE_USERPREF)) { /* Special case: An area can not be set to show the top-bar editor (or * other global areas). However it should still be possible to identify * its type from Python. */ @@ -225,7 +225,7 @@ static const EnumPropertyItem *rna_Area_ui_type_itemf( /* +1 to skip SPACE_EMPTY */ for (const EnumPropertyItem *item_from = rna_enum_space_type_items + 1; item_from->identifier; item_from++) { - if (ELEM(item_from->value, SPACE_TOPBAR, SPACE_STATUSBAR)) { + if (ELEM(item_from->value, SPACE_TOPBAR, SPACE_STATUSBAR, SPACE_USERPREF)) { continue; } |