Brushstroke Tools: Initial Version #328
@ -134,6 +134,7 @@ 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 utils.compare_versions(bpy.app.version, (4,2,4)) >= 0:
|
||||||
if ng.preview:
|
if ng.preview:
|
||||||
utils.set_preview(ng.preview.image_pixels_float, ng.preview.image_size[:])
|
utils.set_preview(ng.preview.image_pixels_float, ng.preview.image_size[:])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user