Brushstroke Tools: Initial Version #328
@ -134,10 +134,11 @@ def set_brush_style(self, 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:
|
||||
utils.set_preview(ng.preview.image_pixels_float, ng.preview.image_size[:])
|
||||
else:
|
||||
utils.set_preview(None)
|
||||
if utils.compare_versions(bpy.app.version, (4,2,4)) >= 0:
|
||||
if ng.preview:
|
||||
utils.set_preview(ng.preview.image_pixels_float, ng.preview.image_size[:])
|
||||
else:
|
||||
utils.set_preview(None)
|
||||
|
||||
node = self.node_tree.nodes['Brush Style']
|
||||
node_prev_inputs = [input.name for input in node.inputs]
|
||||
|
Loading…
Reference in New Issue
Block a user