Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-12-16 13:20:32 +0300
committerJulian Eisel <julian@blender.org>2020-12-16 14:10:58 +0300
commit19fc30c15fa50765a70f662e1aa78cd4140035ce (patch)
tree98e8ca9cd9d937da16ae80ebc2db3e1abc1e90c5
parent0ae15e68c78530843a670e2d57854e8aa12178d2 (diff)
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.
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py5
1 files 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)
# -----------------------------------------------------------------------------