From 19fc30c15fa50765a70f662e1aa78cd4140035ce Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 16 Dec 2020 11:20:32 +0100 Subject: Assets UI: Tweak position of the "Add Asset Library" icon-button in Preferences It's weird to have a button that adds a new item at the bottom be placed at the top. So rather move it below the list of custom asset library paths. --- release/scripts/startup/bl_ui/space_userpref.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 1d9d4fbf393..0167f0b1e20 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -1362,14 +1362,15 @@ class USERPREF_PT_file_paths_asset_libraries(FilePathsPanel, Panel): row.separator() row.label(text="Path") - subrow = row.row() - subrow.operator("preferences.asset_library_add", text="", icon='ADD', emboss=False) for i, library in enumerate(paths.asset_libraries): name_col.prop(library, "name", text="") row = path_col.row() row.prop(library, "path", text="") row.operator("preferences.asset_library_remove", text="", icon='X', emboss=False).index = i + row = box.row() + row.alignment = 'LEFT' + row.operator("preferences.asset_library_add", text="", icon='ADD', emboss=False) # ----------------------------------------------------------------------------- -- cgit v1.2.3