bpy-4: update for bpy api 4

This commit is contained in:
brothermechanic 2024-03-06 09:23:27 +03:00
parent e02bab244d
commit c27b99ff52
No known key found for this signature in database
GPG key ID: 9C59EF9503ACD106
2 changed files with 9 additions and 7 deletions

View file

@ -105,7 +105,7 @@ def assign_black(bobj):
bmat.diffuse_color = (0, 0, 0, 1)
principled = bmat.node_tree.nodes['Principled BSDF']
principled.inputs['Base Color'].default_value = (0, 0, 0, 1)
principled.inputs['Specular'].default_value = 0.0
principled.inputs['Specular IOR Level'].default_value = 0.0
principled.inputs['Roughness'].default_value = 1.0
# prepare for reimport
if len(bobj.material_slots) < 1: