From 768ca064d2358b347b3f8d699eb7b85a05a36fb2 Mon Sep 17 00:00:00 2001 From: Odilkhan Yakubov Date: Fri, 3 Jan 2025 10:50:23 +0500 Subject: [PATCH] - Fix: Disney material: turn on/off "Thin film coating" gives an error --- nodes/materials/disney.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes/materials/disney.py b/nodes/materials/disney.py index 13cdfc40..9b940ec8 100644 --- a/nodes/materials/disney.py +++ b/nodes/materials/disney.py @@ -9,7 +9,8 @@ class LuxCoreNodeMatDisney(LuxCoreNodeMaterial, bpy.types.Node): bl_width_default = 190 def update_use_thinfilmcoating(self, context): - self.inputs["Film Amount"].enabled = self.use_thinfilmcoating + id = self.inputs.find("Film Amount") + self.inputs[id].enabled = self.use_thinfilmcoating ThinFilmCoating.toggle(self, context) use_thinfilmcoating: BoolProperty(name="Thin Film Coating", default=False,