Skip to content

Commit

Permalink
Merge pull request #953 from odil24/for_blender_4.2_wheels
Browse files Browse the repository at this point in the history
- Fix: Glossy coating material option issue
  • Loading branch information
howetuft authored Jan 6, 2025
2 parents f582c31 + b080bfb commit 2d0f1a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nodes/materials/glossycoating.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ class LuxCoreNodeMatGlossyCoating(LuxCoreNodeMaterial, bpy.types.Node):
bl_width_default = 160

def update_use_ior(self, context):
self.inputs["IOR"].enabled = self.use_ior
self.inputs["Specular Color"].enabled = not self.use_ior
id = self.inputs.find("IOR")
self.inputs[id].enabled = self.use_ior

id = self.inputs.find("Specular Color")
self.inputs[id].enabled = not self.use_ior

utils_node.force_viewport_update(self, context)

multibounce: BoolProperty(update=utils_node.force_viewport_update, name="Multibounce", default=False)
Expand Down

0 comments on commit 2d0f1a9

Please sign in to comment.