forked from bartvdbraak/blender
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:
parent
a6ad80d9e8
commit
8c991bf63a
@ -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_UP', text="").direction = 'UP'
|
||||||
col.operator("object.material_slot_move", icon='TRIA_DOWN', text="").direction = 'DOWN'
|
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):
|
class NODE_PT_node_color_presets(PresetPanel, Panel):
|
||||||
"""Predefined node color"""
|
"""Predefined node color"""
|
||||||
|
Loading…
Reference in New Issue
Block a user