This is especially prevalent if you're working on the notes with the lighting events in the background.
The number of times I've hit delete on a note block only for it to remove one of the numerous blocks in my lighting....
I think you're either doing your raycast backwards or iterating the hits backwards.
I'm also not sure if its the same issue, but walls have a tendency to be deleted if you're hovering the mouse within half a note block's width. I'm not sure if its just selecting the wall instead but I've gotten really paranoid when using the delete key because of these issues.
Oh! I know why, it's because I do a different raytrace for events (because they are differents objects) but now it will be fixed as all objects that are on the timeline are all childs of one single class.
This is especially prevalent if you're working on the notes with the lighting events in the background. The number of times I've hit delete on a note block only for it to remove one of the numerous blocks in my lighting....
I think you're either doing your raycast backwards or iterating the hits backwards.
I'm also not sure if its the same issue, but walls have a tendency to be deleted if you're hovering the mouse within half a note block's width. I'm not sure if its just selecting the wall instead but I've gotten really paranoid when using the delete key because of these issues.