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:
authorCampbell Barton <ideasman42@gmail.com>2018-10-12 01:54:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-12 01:54:26 +0300
commit6f6d76554f4eb5335a42874da65d2fca7bbb2cb0 (patch)
treef8112969e8e760e9cf00c58f4a0b83fad9832336 /release/scripts/startup/bl_ui/space_topbar.py
parent45881003f0efc14e50a055c7b5c3feec1f2b890c (diff)
UI: move layer up/down reverse into the operator
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 192cacd6fea..f40307b5b11 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -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()