From f96fcfc08ca6ed1e149859dc1c6dd743d56847c6 Mon Sep 17 00:00:00 2001 From: Odilkhan Yakubov Date: Sun, 5 Jan 2025 02:19:48 +0500 Subject: [PATCH] - Fix: Imagemap node: "Normal map" option issue --- nodes/textures/imagemap.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nodes/textures/imagemap.py b/nodes/textures/imagemap.py index b2f31626..de7e2943 100644 --- a/nodes/textures/imagemap.py +++ b/nodes/textures/imagemap.py @@ -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