Skip to content

Commit

Permalink
Fixed muted shape keys export handling
Browse files Browse the repository at this point in the history
  • Loading branch information
SpectrumQT committed Jul 4, 2024
1 parent e990891 commit 1f9de0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wwmi-tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

bl_info = {
"name": "WWMI Tools",
"version": (0, 8, 4),
"version": (0, 8, 5),
"wwmi_version": (0, 6, 1),
"blender": (2, 80, 0),
"author": "SpectrumQT, DarkStarSword",
Expand Down
9 changes: 6 additions & 3 deletions wwmi-tools/blender_export/object_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@ def prepare_temp_objects(self):
temp_obj = temp_object.object
# Remove muted shape keys
if self.ignore_muted_shape_keys and temp_obj.data.shape_keys:
muted_shape_keys = []
for shapekey_id in range(len(temp_obj.data.shape_keys.key_blocks)):
sheape_key = temp_obj.data.shape_keys.key_blocks[shapekey_id]
if sheape_key.mute:
temp_obj.shape_key_remove(sheape_key)
shape_key = temp_obj.data.shape_keys.key_blocks[shapekey_id]
if shape_key.mute:
muted_shape_keys.append(shape_key)
for shape_key in muted_shape_keys:
temp_obj.shape_key_remove(shape_key)
# Apply all modifiers to temporary object
if self.apply_modifiers:
with OpenObject(self.context, temp_obj) as obj:
Expand Down

0 comments on commit 1f9de0d

Please sign in to comment.