diff options
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 312c2dcb9a2..a115213fc2a 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -1125,7 +1125,9 @@ class ThemeGenericClassGenerator(): theme_area, theme_area.identifier.lower()) -class USERPREF_PT_file_paths(PreferencePanel): +class USERPREF_PT_file_paths(Panel): + bl_space_type = 'PREFERENCES' + bl_region_type = 'WINDOW' bl_label = "File Paths" @classmethod @@ -1133,11 +1135,15 @@ class USERPREF_PT_file_paths(PreferencePanel): prefs = context.preferences return (prefs.active_section == 'SYSTEM_FILES') - def draw_props(self, context, layout): + def draw(self, context): + layout = self.layout prefs = context.preferences paths = prefs.filepaths system = prefs.system + layout.use_property_split = True + layout.use_property_decorate = False # No animation. + layout.prop(paths, "render_output_directory", text="Render Output") layout.prop(paths, "render_cache_directory", text="Render Cache") layout.prop(paths, "font_directory", text="Fonts") @@ -1154,7 +1160,9 @@ class USERPREF_PT_file_paths(PreferencePanel): row.prop(paths, "animation_player", text="Animation Player") -class USERPREF_PT_file_autorun(PreferencePanel): +class USERPREF_PT_file_autorun(Panel): + bl_space_type = 'PREFERENCES' + bl_region_type = 'WINDOW' bl_label = "Auto Run Python Scripts" bl_options = {'DEFAULT_CLOSED'} @@ -1169,10 +1177,14 @@ class USERPREF_PT_file_autorun(PreferencePanel): self.layout.prop(paths, "use_scripts_auto_execute", text="") - def draw_props(self, context, layout): + def draw(self, context): + layout = self.layout prefs = context.preferences paths = prefs.filepaths + layout.use_property_split = True + layout.use_property_decorate = False # No animation. + layout.active = paths.use_scripts_auto_execute box = layout.box() |