From 8c991bf63a88488a7494367744834325d90db4b7 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 3 Oct 2019 10:24:58 -0400 Subject: [PATCH] UI: Add Buttons to Shader Editor Slots Popover Assign, select, deselect buttons added when in edit mode to complete the functionality of the shader editor vs. the properties panel. Reviewed by: brecht Differential Revision: https://developer.blender.org/D5768 --- release/scripts/startup/bl_ui/space_node.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 0f926e596de..35197b2c7dd 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -373,6 +373,12 @@ class NODE_PT_material_slots(Panel): col.operator("object.material_slot_move", icon='TRIA_UP', text="").direction = 'UP' col.operator("object.material_slot_move", icon='TRIA_DOWN', text="").direction = 'DOWN' + if ob.mode == 'EDIT': + row = layout.row(align=True) + row.operator("object.material_slot_assign", text="Assign") + row.operator("object.material_slot_select", text="Select") + row.operator("object.material_slot_deselect", text="Deselect") + class NODE_PT_node_color_presets(PresetPanel, Panel): """Predefined node color"""