Brushstroke Tools: Initial Version #328
@ -196,13 +196,14 @@ def draw_material_settings(layout, material, surface_object=None):
|
|||||||
|
|
||||||
# draw brush style options
|
# draw brush style options
|
||||||
try:
|
try:
|
||||||
n1 = material.node_tree.nodes['Brush Curve']
|
n1 = material.node_tree.nodes['Brush Style']
|
||||||
|
n2 = material.node_tree.nodes['Brush Curve']
|
||||||
|
|
||||||
brush_header, brush_panel = layout.panel('brush_panel', default_closed = True)
|
brush_header, brush_panel = layout.panel('brush_panel', default_closed = True)
|
||||||
brush_header.label(text='Brush Style', icon='BRUSHES_ALL')
|
brush_header.label(text='Brush Style', icon='BRUSHES_ALL')
|
||||||
if brush_panel:
|
if brush_panel:
|
||||||
brush_panel.prop(material, 'brush_style', text='', icon='BRUSHES_ALL')
|
brush_panel.prop(material, 'brush_style', text='', icon='BRUSHES_ALL')
|
||||||
brush_panel.template_node_inputs(n1)
|
brush_panel.template_node_inputs(n2)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user