]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix a bug with exporting vertex groups
authorMikko Rasa <tdb@tdb.fi>
Wed, 17 Jan 2024 20:46:35 +0000 (22:46 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 17 Jan 2024 20:46:35 +0000 (22:46 +0200)
blender/io_mspgl/mesh.py

index e4db4afb2a2abae7262564828aa9cc821422961d..c738b8f3ddaa51193fdbfdd0714fb87cfe14a4d0 100644 (file)
@@ -71,8 +71,8 @@ class VertexGroup:
                        self.group = args[0]
                        self.weight = args[1]
                elif len(args)==1 and args[0]:
-                       self.group = group.group
-                       self.weight = group.weight
+                       self.group = args[0].group
+                       self.weight = args[0].weight
                else:
                        self.group = 0
                        self.weight = 0.0