]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix incorrect variable name
authorMikko Rasa <tdb@tdb.fi>
Tue, 30 Jul 2024 15:32:19 +0000 (18:32 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 30 Jul 2024 15:32:19 +0000 (18:32 +0300)
blender/io_mspgl/mesh.py

index 0856ef2a09b7f3afbafa83b31671ad0891fdc3f2..b7565270ef06ffa1a41924346acbaa1e3ae99c03 100644 (file)
@@ -446,7 +446,7 @@ class Mesh:
                        armature = obj.parent.data
                        bone_indices = {b.name: i for i, b in enumerate(armature.bones)}
                        group_index_map = {i: i for i in range(len(obj.vertex_groups))}
-                       for g in first_obj.vertex_groups:
+                       for g in obj.vertex_groups:
                                if g.name in bone_indices:
                                        group_index_map[g.index] = bone_indices[g.name]