[Bf-blender-cvs] [f4bc205a329] blender2.8: UI: Detach Material specials menu from add/remove column.
Pablo Vazquez
noreply at git.blender.org
Wed Oct 31 18:39:03 CET 2018
Commit: f4bc205a329cc9aab28ac4669c338e5a367d3826
Author: Pablo Vazquez
Date: Wed Oct 31 18:33:23 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBf4bc205a329cc9aab28ac4669c338e5a367d3826
UI: Detach Material specials menu from add/remove column.
===================================================================
M 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:
More information about the Bf-blender-cvs
mailing list