From f4bc205a329cc9aab28ac4669c338e5a367d3826 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 31 Oct 2018 18:33:23 +0100 Subject: UI: Detach Material specials menu from add/remove column. --- release/scripts/startup/bl_ui/properties_material.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_material.py') diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 17898f4f971..4f28b14e3b5 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -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: -- cgit v1.2.3