]> git.tdb.fi Git - libs/gl.git/commitdiff
Assign unneeded values to _ when unpacking
authorMikko Rasa <tdb@tdb.fi>
Wed, 20 Oct 2021 13:06:22 +0000 (16:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 20 Oct 2021 13:06:22 +0000 (16:06 +0300)
blender/io_mspgl/material.py

index bb8bd80bf68a0778ba2f2fe70c4bc1762c1fe451..87e9479bbc676c309495d39b527a1c1848bef6f4 100644 (file)
@@ -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)