Fix Generic List move ops clickable with 1 element
Meant to include this piece of feedback from Sybren in D14119.
This commit is contained in:
parent
75d6228583
commit
073cf46b2e
Notes:
blender-bot
2023-02-14 08:39:23 +01:00
Referenced by commit 1fd1d24265
, Revert accidental changes to sub-modules
|
@ -1 +1 @@
|
|||
Subproject commit 08b372721b9b33a16f380cab23b2e5ded738ea96
|
||||
Subproject commit 7084c4ecd97d93459d9d23fd90f81589b09be5df
|
|
@ -1 +1 @@
|
|||
Subproject commit d887a4ea6b2a9d64b926034d4e78ecf7a48ca979
|
||||
Subproject commit 7b9dd0e1ef425ebe6f3aa9ce292acf0464c72028
|
|
@ -1 +1 @@
|
|||
Subproject commit 9d538629bb8a425991c7d10a49bab1ba0788c18f
|
||||
Subproject commit bdcfdd47ec3451822b21d1cff2ea2db751093c9a
|
|
@ -130,7 +130,7 @@ def _draw_move_buttons(
|
|||
) -> None:
|
||||
"""Draw the up/down arrows to move elements in the list."""
|
||||
col = layout.column()
|
||||
col.enabled = list_length > 0
|
||||
col.enabled = list_length > 1
|
||||
move_up_op = layout.operator(UILIST_OT_entry_move.bl_idname, text="", icon='TRIA_UP')
|
||||
move_up_op.direction = 'UP'
|
||||
move_up_op.list_path = list_path
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 3582f5326d08ca05c2a19056597e49ec5511d854
|
||||
Subproject commit e1744b9bd82527cf7e8af63362b61bd309b5711b
|
Loading…
Reference in New Issue