From 563f11dd3e08263c8094c124c862fb6a398708f2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 20 Oct 2021 16:06:22 +0300 Subject: [PATCH] Assign unneeded values to _ when unpacking --- blender/io_mspgl/material.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blender/io_mspgl/material.py b/blender/io_mspgl/material.py index bb8bd80b..87e9479b 100644 --- a/blender/io_mspgl/material.py +++ b/blender/io_mspgl/material.py @@ -27,13 +27,13 @@ def check_invert_green(node_tree, node): from .util import get_linked_node_and_socket - green, g_sock = get_linked_node_and_socket(node_tree, node.inputs["G"]) + green, _ = get_linked_node_and_socket(node_tree, node.inputs["G"]) if not green or green.type!='MATH' or green.operation!='SUBTRACT': return (None, None) - green, g_sock = get_linked_node_and_socket(node_tree, green.inputs[1]) + green, _ = get_linked_node_and_socket(node_tree, green.inputs[1]) - red, r_sock = get_linked_node_and_socket(node_tree, node.inputs["R"]) - blue, b_sock = get_linked_node_and_socket(node_tree, node.inputs["B"]) + red, _ = get_linked_node_and_socket(node_tree, node.inputs["R"]) + blue, _ = get_linked_node_and_socket(node_tree, node.inputs["B"]) if not red or red.type!='SEPRGB' or blue!=red or green!=red: return (None, None) -- 2.45.2