UI: Detach Material specials menu from add/remove column.

This commit is contained in:
2018-10-31 18:33:23 +01:00
parent cde64619ca
commit f4bc205a32

View File

@@ -30,8 +30,8 @@ class MATERIAL_MT_specials(Menu):
def draw(self, context):
layout = self.layout
layout.operator("object.material_slot_copy")
layout.operator("material.copy", icon='COPYDOWN')
layout.operator("object.material_slot_copy")
layout.operator("material.paste", icon='PASTEDOWN')
@@ -102,9 +102,9 @@ class EEVEE_MATERIAL_PT_context_material(MaterialButtonsPanel, Panel):
if ob:
is_sortable = len(ob.material_slots) > 1
rows = 2
rows = 3
if (is_sortable):
rows = 4
rows = 5
row = layout.row()
@@ -114,6 +114,8 @@ class EEVEE_MATERIAL_PT_context_material(MaterialButtonsPanel, Panel):
col.operator("object.material_slot_add", icon='ADD', text="")
col.operator("object.material_slot_remove", icon='REMOVE', text="")
col.separator()
col.menu("MATERIAL_MT_specials", icon='DOWNARROW_HLT', text="")
if is_sortable: