UI: move layer up/down reverse into the operator

This commit is contained in:
Campbell Barton
2018-10-12 09:54:26 +11:00
parent 45881003f0
commit 6f6d76554f
2 changed files with 4 additions and 7 deletions

View File

@@ -376,12 +376,8 @@ class TOPBAR_PT_gpencil_layers(Panel):
col.separator()
sub = col.column(align=True)
if reverse is False:
sub.operator("gpencil.layer_move", icon='TRIA_UP', text="").type = 'UP'
sub.operator("gpencil.layer_move", icon='TRIA_DOWN', text="").type = 'DOWN'
else:
sub.operator("gpencil.layer_move", icon='TRIA_UP', text="").type = 'DOWN'
sub.operator("gpencil.layer_move", icon='TRIA_DOWN', text="").type = 'UP'
sub.operator("gpencil.layer_move", icon='TRIA_UP', text="").type = 'UP'
sub.operator("gpencil.layer_move", icon='TRIA_DOWN', text="").type = 'DOWN'
col.separator()