Skip to content

Commit

Permalink
Update material.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hisprofile authored Jun 13, 2024
1 parent d97b2a3 commit 99aafb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plumber/asset/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def import_material(material: Material) -> None:
if material_data is None:
material_data = bpy.data.materials.new(material_name)

material_data['path_id'] = material.name()

material_data.use_nodes = True
nt = material_data.node_tree
nt.nodes.clear()
Expand Down

0 comments on commit 99aafb8

Please sign in to comment.