Brushstroke Tools: Initial Version #328
@ -134,7 +134,13 @@ def set_brush_style(self, value):
|
||||
#if ng.preview:
|
||||
# utils.set_preview(ng.preview.image_pixels_float)
|
||||
|
||||
self.node_tree.nodes['Brush Style'].node_tree = ng
|
||||
node = self.node_tree.nodes['Brush Style']
|
||||
node_prev_inputs = [input.name for input in node.inputs]
|
||||
node.node_tree = ng
|
||||
for in_new in node.inputs:
|
||||
if in_new.name in node_prev_inputs:
|
||||
continue
|
||||
in_new.default_value = ng.interface.items_tree[in_new.name].default_value
|
||||
self["brush_style"] = value
|
||||
|
||||
def link_context_type_items(self, context):
|
||||
|
Loading…
Reference in New Issue
Block a user