Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
Showing only changes of commit 3776661fce - Show all commits

View File

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