diff options
author | Hans Goudey <h.goudey@me.com> | 2019-10-03 17:24:58 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2019-10-03 17:29:25 +0300 |
commit | 8c991bf63a88488a7494367744834325d90db4b7 (patch) | |
tree | 7f4b2d85bff57767a3ae97a558b57f401f572e85 | |
parent | a6ad80d9e852bb47e435915d9d491819d0947016 (diff) |
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
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 6 |
1 files changed, 6 insertions, 0 deletions
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""" |