wgt01: set fake user in wire_materials.py so materials survive save
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user