Skip to content

Commit

Permalink
fix(shapekeys): Make sure no duplicate blendshape proxys get created
Browse files Browse the repository at this point in the history
  • Loading branch information
Menithal committed Dec 23, 2023
1 parent 423841d commit 2927b99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion io_extended_scene_vrm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
bl_info = {
"name": "Mals' Extended VRM",
"author": "Matti 'Menithal' Lahtinen",
"version": (0, 0, 9),
"version": (0, 0, 10),
"blender": (3, 3, 0),
"location": "3D View Tools",
"description": "Additional VRM Tools",
Expand Down
3 changes: 1 addition & 2 deletions io_extended_scene_vrm/shapekeys/shapekey_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def bind_shapekeys_to_proxy(armature: bpy.types.Object,
is_retargetable = retarget is not None and shapekey.lower() in retarget_keys
if is_retargetable:
retarget_value = retarget.get(shapekey)
print("Found retargetable ", retarget_value, "for", shapekey)
if has_shapekey_in_mesh(retarget_value, mesh):
# use original blendshapegroup
blend_shape_group_index = blendshape_groups.index(shapekey.lower())
Expand Down Expand Up @@ -88,7 +87,7 @@ def bind_shapekeys_to_vrm_blendshape_proxy(armature: bpy.types.Object, target_sh
if shape_key in available_shapekey_list: continue
available_shapekey_list.append(shape_key.name.lower())

existing_keys = [item for item in armature.data.vrm_addon_extension.vrm0.blend_shape_master.blend_shape_groups.keys()]
existing_keys = [item.lower() for item in armature.data.vrm_addon_extension.vrm0.blend_shape_master.blend_shape_groups.keys()]
skipped = 0

for i,target_shapekey in enumerate(target_shapekey_list):
Expand Down

0 comments on commit 2927b99

Please sign in to comment.