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