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

View File

@ -131,7 +131,7 @@ def get_brush_style(self):
def set_brush_style(self, value):
addon_prefs = bpy.context.preferences.addons[__package__].preferences
ng_name = f'BSBST-brushstroke.{value}'
ng_name = f'BSBST-BS.{value}'
ng = utils.ensure_node_group(ng_name, [bs for bs in addon_prefs.brush_styles if bs.name==value][0].filepath)
# if ng.preview:

View File

@ -377,7 +377,7 @@ def add_brush_styles_from_directory(path):
names = []
with bpy.data.libraries.load(filepath) as (data_from, data_to):
names = [name for name in data_from.node_groups if name.startswith('BSBST-brushstroke')]
names = [name for name in data_from.node_groups if name.startswith('BSBST-BS')]
for ng_name in names:
b_style = addon_prefs.brush_styles.add()