Cleanup: format

This commit is contained in:
Campbell Barton
2023-12-02 14:56:12 +11:00
parent a7afc5b1e8
commit 32c5ea6262
7 changed files with 9 additions and 6 deletions
@@ -273,6 +273,7 @@ class GPENCIL_MT_layer_active(Menu):
layout.operator("gpencil.layer_active", text=gpl.info, icon=icon).layer = i
i -= 1
class GREASE_PENCIL_MT_layer_active(Menu):
bl_label = "Change Active Layer"
@@ -288,7 +289,7 @@ class GREASE_PENCIL_MT_layer_active(Menu):
layout.separator()
for i in range(len(obd.layers) - 1, -1, -1):
for i in range(len(obd.layers) - 1, -1, -1):
layer = obd.layers[i]
if layer == obd.layers.active:
icon = 'GREASEPENCIL'
@@ -296,6 +297,7 @@ class GREASE_PENCIL_MT_layer_active(Menu):
icon = 'NONE'
layout.operator("grease_pencil.layer_active", text=layer.name, icon=icon).layer = i
class GPENCIL_MT_material_active(Menu):
bl_label = "Change Active Material"
+1
View File
@@ -5808,6 +5808,7 @@ class VIEW3D_MT_edit_gpencil_showhide(Menu):
layout.operator("gpencil.hide", text="Hide Active Layer").unselected = False
layout.operator("gpencil.hide", text="Hide Inactive Layers").unselected = True
class VIEW3D_MT_edit_greasepencil_showhide(Menu):
bl_label = "Show/Hide"