Skip to content

Commit

Permalink
- Fix: Imagemap node: "Normal map" option issue
Browse files Browse the repository at this point in the history
  • Loading branch information
odil24 authored Jan 4, 2025
1 parent 52492ef commit f96fcfc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nodes/textures/imagemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ def update_image(self, context):
description="Brightness multiplier")

def update_is_normal_map(self, context):
color_output = self.outputs["Color"]
bump_output = self.outputs["Bump"]
alpha_output = self.outputs["Alpha"]
id = self.outputs.find("Color")
color_output = self.outputs[id]
id = self.outputs.find("Bump")
bump_output = self.outputs[id]
id = self.outputs.find("Alpha")
alpha_output = self.outputs[id]
was_color_enabled = color_output.enabled

color_output.enabled = not self.is_normal_map
alpha_output.enabled = not self.is_normal_map
bump_output.enabled = self.is_normal_map
Expand Down

0 comments on commit f96fcfc

Please sign in to comment.