Ikeiwa / EditSaber

A 3d editor to create custom songs for the game BeatSaber
MIT License
201 stars 30 forks source link

Delete removes the background element when hovering over multiple blocks. #32

Open SeraEris opened 6 years ago

SeraEris commented 6 years ago

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.

Ikeiwa commented 6 years ago

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.