From: Mikko Rasa Date: Tue, 30 Jul 2024 15:32:19 +0000 (+0300) Subject: Fix incorrect variable name X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=9e2767f7ad245325f3a98342eb56b104c8761111;p=libs%2Fgl.git Fix incorrect variable name --- diff --git a/blender/io_mspgl/mesh.py b/blender/io_mspgl/mesh.py index 0856ef2a..b7565270 100644 --- a/blender/io_mspgl/mesh.py +++ b/blender/io_mspgl/mesh.py @@ -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]