From 6b12f37000314e6d02a4bebd2f1b9cd0ba2b60c5 Mon Sep 17 00:00:00 2001 From: Aina Olaoluwa <115317659+drune9d@users.noreply.github.com> Date: Sat, 1 Aug 2026 04:35:53 -0700 Subject: [PATCH] Support newer Blender material settings --- __init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index e3116e4..ffb1fe8 100644 --- a/__init__.py +++ b/__init__.py @@ -161,7 +161,10 @@ 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' + if hasattr(mat, "shadow_method"): + mat.shadow_method = 'HASHED' + elif hasattr(mat, "surface_render_method"): + mat.surface_render_method = 'DITHERED' for node in mat.node_tree.nodes: mat.node_tree.nodes.remove(node)