update addons (for 5.2)

This commit is contained in:
Nathan
2026-07-14 14:44:58 -06:00
parent a232ea1c9c
commit e3310263f3
246 changed files with 21097 additions and 9607 deletions
@@ -10,6 +10,7 @@ from bpy.app.handlers import persistent
import math, shutil, errno, numpy
from bpy.app.handlers import persistent
from mathutils import Vector
from . import geomod
addon_version = (0,0,0)
@@ -36,6 +37,7 @@ linkable_sockets = [
asset_lib_name = 'Brushstroke Tools Library'
@persistent
def find_context_brushstrokes(scene, depsgraph):
settings = scene.BSBST_settings
@@ -178,7 +180,7 @@ def set_brushstroke_material(ob, material):
continue
if not s.link_context_type == 'MATERIAL':
continue
mod[s.name] = material
geomod.set_value(mod, s.name, material)
ob.update_tag()
if ob.type == 'EMPTY':
@@ -655,11 +657,7 @@ def transfer_modifier(modifier_name, target_obj, source_obj):
if source_mod.type == 'NODES':
# Transfer geo node attributes
for key, value in source_mod.items():
try:
target_mod[key] = value
except (TypeError, ValueError) as e:
target_mod[key] = type(target_mod[key])(value)
geomod.copy_inputs(source_mod, target_mod)
# Transfer geo node bake settings
target_mod.bake_directory = source_mod.bake_directory
@@ -744,7 +742,7 @@ def set_surface_object(bs, surf_ob):
continue
if not s.link_context_type == 'SURFACE_OBJECT':
continue
mod[s.name] = surf_ob
geomod.set_value(mod, s.name, surf_ob)
ob.parent = surf_ob
ob.parent_type = 'OBJECT'
surf_ob.update_tag()
@@ -775,7 +773,7 @@ def set_flow_object(bs, ob):
continue
if not s.link_context_type == 'FLOW_OBJECT':
continue
mod[s.name] = ob
geomod.set_value(mod, s.name, ob)
ob.update_tag()
bs['BSBST_flow_object'] = ob
@@ -1106,8 +1104,18 @@ def match_mat(tgt_mat, src_mat):
for attr_path in path_list:
try:
exec(f'tgt_mat.{attr_path} = src_mat.{attr_path}')
path_parts = attr_path.replace("'", '"').split('.')
attr_name = path_parts[-1]
item_path = ".".join(path_parts[:-1])
if item_path:
tgt_item = tgt_mat.path_resolve(item_path)
src_item = src_mat.path_resolve(item_path)
else:
tgt_item = tgt_mat
src_item = src_mat
setattr(tgt_item, attr_name, getattr(src_item, attr_name))
except:
print(f"Could not copy attribute '{attr_path}' on material '{tgt_mat.name}'")
pass
tgt_curve_node = tgt_mat.node_tree.nodes.get('Brush Curve')