diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2018-11-27 16:19:00 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-11-27 16:19:06 +0300 |
commit | 0217af2f9906af11096af815f986d36c84c89e68 (patch) | |
tree | d79eec4557e7a0108564e5423f9d238cf46982a2 /source/blender/makesrna/intern/rna_screen.c | |
parent | 32ab0647a53c16420993ca49563580cd48ac99af (diff) |
UI: Bring back User Preferences entry in Editors list.
It's nonstandard and kind of weird, but it's nice when making keymaps, themes, quickly test things without spawning a new window.
Diffstat (limited to 'source/blender/makesrna/intern/rna_screen.c')
-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 f4311f820ce..0a7c71a683e 100644 --- a/source/blender/makesrna/intern/rna_screen.c +++ b/source/blender/makesrna/intern/rna_screen.c @@ -153,7 +153,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, SPACE_USERPREF)) { + if (ELEM(item_from->value, SPACE_TOPBAR, SPACE_STATUSBAR)) { continue; } RNA_enum_item_add(&item, &totitem, item_from); @@ -174,7 +174,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, SPACE_USERPREF)) { + if (ELEM(value, SPACE_TOPBAR, SPACE_STATUSBAR)) { /* 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. */ @@ -232,7 +232,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, SPACE_USERPREF)) { + if (ELEM(item_from->value, SPACE_TOPBAR, SPACE_STATUSBAR)) { continue; } |