]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix incorrect function call syntax in the Blender exporter
authorMikko Rasa <tdb@tdb.fi>
Wed, 31 Jul 2024 21:49:18 +0000 (00:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 31 Jul 2024 21:49:18 +0000 (00:49 +0300)
blender/io_mspgl/material.py

index df6192d0e1a0b82f0ea9ecc163b49e877741e475..a20d77182db5d3a75843a7a6e9deaf52f6c888cc 100644 (file)
@@ -348,7 +348,7 @@ class Material:
 
                                color = self.create_property("color", "texture", (1.0, 1.0, 1.0, 1.0))
 
-                               color.set_from_input(material.node_tree, color_input, alpha_input)
+                               color.set_from_input(material.node_tree, color_input, alpha_socket=alpha_input)
                                if self.blend_type=='ADDITIVE' and alpha_input:
                                        self.blend_type = 'ADDITIVE_ALPHA'
                else: