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
2 changed files with 9 additions and 4 deletions
Showing only changes of commit 041366a762 - Show all commits

View File

@ -170,12 +170,17 @@ def draw_material_settings(layout, material, surface_object=None):
# draw opacity options # draw opacity options
try: try:
n1 = material.node_tree.nodes['Use Strength'] n1 = material.node_tree.nodes.get('Use Strength')
n2 = material.node_tree.nodes['Opacity'] n2 = material.node_tree.nodes.get('Opacity')
n3 = material.node_tree.nodes.get('Backface Culling')
box = material_panel.box() box = material_panel.box()
box.prop(n1, 'mute', text='Use Brush Strength', invert_checkbox=True) if n1:
box.prop(n2.inputs[0], 'default_value', text='Opacity') box.prop(n1, 'mute', text='Use Brush Strength', invert_checkbox=True)
if n2:
box.prop(n2.inputs[0], 'default_value', text='Opacity')
if n3:
box.prop(n3, 'mute', text='Backface Culling', invert_checkbox=True)
except: except:
pass pass