[Bf-blender-cvs] [19fc30c15fa] master: Assets UI: Tweak position of the "Add Asset Library" icon-button in Preferences

Julian Eisel noreply at git.blender.org
Wed Dec 16 12:11:28 CET 2020


Commit: 19fc30c15fa50765a70f662e1aa78cd4140035ce
Author: Julian Eisel
Date:   Wed Dec 16 11:20:32 2020 +0100
Branches: master
https://developer.blender.org/rB19fc30c15fa50765a70f662e1aa78cd4140035ce

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.

===================================================================

M	release/scripts/startup/bl_ui/space_userpref.py

===================================================================

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)
 
 
 # -----------------------------------------------------------------------------



More information about the Bf-blender-cvs mailing list