Skip to content

Commit

Permalink
Merge pull request #950 from odil24/for_blender_4.2_wheels
Browse files Browse the repository at this point in the history
- Fix: Glossy material "Use IOR" option gives error
  • Loading branch information
howetuft authored Jan 3, 2025
2 parents fc60078 + f61c26c commit af57e51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nodes/materials/glossy2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ class LuxCoreNodeMatGlossy2(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")
if id:
self.inputs[id].enabled = self.use_ior
id = self.inputs.find("Specular Color")
if id:
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 af57e51

Please sign in to comment.