Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Vazquez <venomgfx@gmail.com>2018-10-31 20:33:23 +0300
committerPablo Vazquez <venomgfx@gmail.com>2018-10-31 20:39:01 +0300
commitf4bc205a329cc9aab28ac4669c338e5a367d3826 (patch)
tree9f7697c18c115979c8c9faa96e2a01092f06e963 /release/scripts/startup/bl_ui/properties_material.py
parentcde64619cab3674dd4aa2d064406a71efbe2c4d7 (diff)
UI: Detach Material specials menu from add/remove column.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_material.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_material.py8
1 files changed, 5 insertions, 3 deletions
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: