Add Easy_Weight
to Addons
#47
@ -161,7 +161,7 @@ def get_referenced_vgroups(mesh_ob: bpy.types.Object, py_ob: object) -> List[bpy
|
||||
continue
|
||||
vg = mesh_ob.vertex_groups.get(value)
|
||||
if vg:
|
||||
referenced_vgroups.append(vg.name)
|
||||
referenced_vgroups.append(vg)
|
||||
return referenced_vgroups
|
||||
|
||||
def get_shape_key_mask_vgroups(mesh_ob) -> List[bpy.types.VertexGroup]:
|
||||
@ -172,6 +172,7 @@ def get_shape_key_mask_vgroups(mesh_ob) -> List[bpy.types.VertexGroup]:
|
||||
vg = mesh_ob.vertex_groups.get(sk.vertex_group)
|
||||
if vg and vg.name not in mask_vgroups:
|
||||
mask_vgroups.append(vg)
|
||||
return mask_vgroups
|
||||
|
||||
def delete_unused_vgroups(mesh_ob) -> List[str]:
|
||||
non_deform_vgroups = get_non_deforming_vgroups(mesh_ob)
|
||||
|
Loading…
Reference in New Issue
Block a user