Describe the bug
If you create a situation where a single path object has 2 closed loops (easiest way is to unite 2 paths that don't intersect), trying to erase the shape will cause the eraser to bug out for the rest of the session.
To reproduce
Steps to reproduce the behavior:
- make 2 rectangles that don't touch each other
- unite the shapes
- try to erase part of the new shape
the console will print a warning, and the eraser will not work for the rest of the session.
Expected behavior
the eraser works as usual
Screenshots

Editor version
reproducible on all versions