Skip to content

Commit

Permalink
Fix bone layer icon #2511
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerBforartists committed Jun 25, 2021
1 parent cb278dd commit f3d0444
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4964,7 +4964,7 @@ def draw(self, _context):

col.operator_context = 'INVOKE_AREA'
col.operator("armature.armature_layers", text="Change Armature Layers", icon = "LAYER")
col.operator("pose.bone_layers", text="Change Bone Layers", icon = "LAYER")
col.operator("pose.bone_layers", text="Change Bone Layers", icon = "BONE_LAYER")

# icon buttons
else:
Expand All @@ -4979,14 +4979,14 @@ def draw(self, _context):
row.operator("pose.quaternions_flip", text="", icon = "FLIP")
row.operator_context = 'INVOKE_AREA'
row.operator("armature.armature_layers", text="", icon = "LAYER")
row.operator("pose.bone_layers", text="", icon = "LAYER")
row.operator("pose.bone_layers", text="", icon = "BONE_LAYER")

elif column_count == 2:

row = col.row(align=True)
row.operator("pose.quaternions_flip", text="", icon = "FLIP")
row.operator_context = 'INVOKE_AREA'
row.operator("armature.armature_layers", text="", icon = "LAYER")
row.operator("armature.armature_layers", text="", icon = "BONE_LAYER")

row = col.row(align=True)
row.operator("pose.bone_layers", text="", icon = "LAYER")
Expand All @@ -4999,7 +4999,7 @@ def draw(self, _context):

col.operator_context = 'INVOKE_AREA'
col.operator("armature.armature_layers", text="", icon = "LAYER")
col.operator("pose.bone_layers", text="", icon = "LAYER")
col.operator("pose.bone_layers", text="", icon = "BONE_LAYER")


class VIEW3D_PT_gp_posetab_cleartransform(toolshelf_calculate, Panel):
Expand Down
3 changes: 2 additions & 1 deletion release/scripts/startup/bl_ui/space_view3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3832,7 +3832,7 @@ def draw(self, _context):

layout.operator_context = 'INVOKE_AREA'
layout.operator("armature.armature_layers", text="Change Armature Layers", icon = "LAYER")
layout.operator("pose.bone_layers", text="Change Bone Layers", icon = "LAYER")
layout.operator("pose.bone_layers", text="Change Bone Layers", icon = "BONE_LAYER")

layout.separator()

Expand Down Expand Up @@ -4879,6 +4879,7 @@ def draw(self, context):
layout.operator("mesh.hide", text="Hide Selected", icon = "HIDE_ON").unselected = False
layout.operator("mesh.hide", text="Hide Unselected", icon = "HIDE_UNSELECTED").unselected = True


class VIEW3D_MT_edit_gpencil_delete(Menu):
bl_label = "Delete"

Expand Down

0 comments on commit f3d0444

Please sign in to comment.