[Bf-blender-cvs] [8962b5e16b9] blender2.8: GP: Removed unused lines after previous commit

Antonioya noreply at git.blender.org
Fri Oct 12 09:09:01 CEST 2018


Commit: 8962b5e16b91d22029674c58dcc7499dc3e21606
Author: Antonioya
Date:   Fri Oct 12 09:08:41 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8962b5e16b91d22029674c58dcc7499dc3e21606

GP: Removed unused lines after previous commit

The reverse order is controlled inside operator.

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py
index 470560c3cd0..184440a3400 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -150,12 +150,8 @@ class DATA_PT_gpencil_datapanel(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()



More information about the Bf-blender-cvs mailing list