UI: move layer up/down reverse into the operator
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user