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 0952e3d044 - Show all commits

View File

@ -134,8 +134,6 @@ def draw_material_settings(layout, material, surface_object=None):
material_header, material_panel = layout.panel("brushstrokes_material", default_closed=False) material_header, material_panel = layout.panel("brushstrokes_material", default_closed=False)
material_header.label(text='Properties', icon='MATERIAL') material_header.label(text='Properties', icon='MATERIAL')
if material_panel: if material_panel:
material_panel.prop(material, 'diffuse_color', text='Viewport Color')
# draw color options # draw color options
try: try:
n1 = material.node_tree.nodes['Color Attribute'] n1 = material.node_tree.nodes['Color Attribute']
@ -204,6 +202,8 @@ def draw_material_settings(layout, material, surface_object=None):
except: except:
pass pass
material_panel.prop(material, 'diffuse_color', text='Viewport Color')
# draw brush style options # draw brush style options
try: try:
n1 = material.node_tree.nodes['Brush Style'] n1 = material.node_tree.nodes['Brush Style']