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 ea86b00bc8 - Show all commits

View File

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