Brushstroke Tools: Initial Version #328
Binary file not shown.
Binary file not shown.
@ -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:
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user