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
This commit is contained in:
Hans Goudey 2019-10-03 10:24:58 -04:00
parent a6ad80d9e8
commit 8c991bf63a
1 changed files with 6 additions and 0 deletions

View File

@ -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"""