shape_keys_plus icon indicating copy to clipboard operation
shape_keys_plus copied to clipboard

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

Open lauwurence opened this issue 2 years ago • 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

lauwurence avatar Jul 04 '22 14:07 lauwurence

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.

MichaelGlenMontague avatar Jul 04 '22 15:07 MichaelGlenMontague