MichaelGlenMontague/shape_keys_plus

Removing "Selected" shape keys doesn't update parent folder data

lauwurence opened this issue · 1 comments

Just found that after deleting selected shape keys from a folder, the same amount of other folders below parents to that folder.

Select one shape key (with check mark):
image

Delete using bpy.ops.object.skp_shape_key_remove:
image

The Chest folder parents to the Thigh folder:
image

  • OS: Windows
  • Version: 2.0.2

This kind of bug is reminiscent of 1.x versions, before the new tree hierarchy system. Indeed, it looks like I somehow completely forgot to update the 'SELECTED' variant of the Remove Shape Key operator to use this new tree hierarchy system.

Until this gets patched, you can either use the Mutate Folder operator (found via search) to change the number of the parent folder's children back to the proper value, or use Unparent from Root on the selected keys before using Remove Shape Key.