Fixed compatibility with Blender version 4.3

mat.shadow_method is removed from Blender 4.3
This commit is contained in:
hentila 2025-01-02 16:13:45 +02:00 committed by GitHub
parent ad0ef5842a
commit 4b66e18b7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,6 @@ def create_compify_material(name, camera, footage):
mat = bpy.data.materials.new(name)
mat.use_nodes = True
mat.blend_method = 'HASHED'
mat.shadow_method = 'HASHED'
for node in mat.node_tree.nodes:
mat.node_tree.nodes.remove(node)