Modify state breaks character creator if the object is deleted while active
If you are in any of the 'modify' states (edit mesh, edit skin weights etc) and delete the object that is being edited, then character creator gets into a bad state - it thinks that it's still in the 'edit' state, but basically won't exit it and reports an error 'Failed to record undo/redo step. Undo manager will reset'