[Bf-blender-cvs] [8c991bf63a8] master: UI: Add Buttons to Shader Editor Slots Popover
Hans Goudey
noreply at git.blender.org
Thu Oct 3 16:30:04 CEST 2019
Commit: 8c991bf63a88488a7494367744834325d90db4b7
Author: Hans Goudey
Date: Thu Oct 3 10:24:58 2019 -0400
Branches: master
https://developer.blender.org/rB8c991bf63a88488a7494367744834325d90db4b7
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
===================================================================
M release/scripts/startup/bl_ui/space_node.py
===================================================================
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"""
More information about the Bf-blender-cvs
mailing list