Brushstroke Tools: Initial Version #328
Binary file not shown.
@ -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()
|
||||||
|
if n1:
|
||||||
box.prop(n1, 'mute', text='Use Brush Strength', invert_checkbox=True)
|
box.prop(n1, 'mute', text='Use Brush Strength', invert_checkbox=True)
|
||||||
|
if n2:
|
||||||
box.prop(n2.inputs[0], 'default_value', text='Opacity')
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user