wgt01: set fake user in wire_materials.py so materials survive save

This commit is contained in:
2026-07-05 01:35:42 +02:00
parent 203bc41c54
commit 329e62321d
+1
View File
@@ -6,6 +6,7 @@ BASE = os.path.dirname(bpy.data.filepath)
for slot in SLOTS:
name = f"MAT_wgt01_{slot}"
mat = bpy.data.materials.get(name) or bpy.data.materials.new(name)
mat.use_fake_user = True
mat.use_nodes = True
nt = mat.node_tree; nt.nodes.clear()
out = nt.nodes.new("ShaderNodeOutputMaterial")