This solves the crash, but indices might be wrong after the separation. There are loads of other ways to confuse hook indices in both meshes and curves, for now considering this a TODO.
This solves the crash, but indices might be wrong after the separation. There are loads of other ways to confuse hook indices in both meshes and curves, for now considering this a TODO.