diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-04 20:16:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-04 20:25:55 +0300 |
commit | 1715d09d7c9506ed77af69571ab739a48a972514 (patch) | |
tree | c45f7b1d4c5efd75ecd7d9f37e9383488da70502 /source/blender/makesrna/intern/rna_userdef.c | |
parent | 933725ab4643ea9de268ca3be434f2ec0a797aff (diff) |
Cleanup: userpref UI options into their own struct
Mixing options for showing preferences with other flags was confusing.
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 64ed284eb1f..7c6247180a3 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -4112,7 +4112,7 @@ static void rna_def_userdef_view(BlenderRNA *brna) RNA_def_property_update(prop, 0, "rna_userdef_update"); prop = RNA_def_property(srna, "show_addons_enabled_only", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, NULL, "flag", USER_ADDONS_ENABLED_ONLY); + RNA_def_property_boolean_sdna(prop, NULL, "space_data.flag", USER_SPACEDATA_ADDONS_SHOW_ONLY_ENABLED); RNA_def_property_ui_text(prop, "Enabled Add-ons Only", "Only show enabled add-ons. Un-check to see all installed add-ons"); @@ -5463,7 +5463,7 @@ static void rna_def_userdef_keymap(BlenderRNA *brna) prop = RNA_def_property(srna, "show_ui_keyconfig", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_negative_sdna( - prop, NULL, "userpref_flag", USER_SECTION_INPUT_HIDE_UI_KEYCONFIG); + prop, NULL, "space_data.flag", USER_SPACEDATA_INPUT_HIDE_UI_KEYCONFIG); RNA_def_property_ui_text(prop, "Show UI Key-Config", ""); prop = RNA_def_property(srna, "active_keyconfig", PROP_STRING, PROP_DIRPATH); @@ -5744,7 +5744,7 @@ void RNA_def_userdef(BlenderRNA *brna) RNA_def_struct_ui_text(srna, "Preferences", "Global preferences"); prop = RNA_def_property(srna, "active_section", PROP_ENUM, PROP_NONE); - RNA_def_property_enum_sdna(prop, NULL, "userpref"); + RNA_def_property_enum_sdna(prop, NULL, "space_data.section_active"); RNA_def_property_enum_items(prop, preference_section_items); RNA_def_property_ui_text( prop, "Active Section", "Active section of the preferences shown in the user interface"); |