MontyTRC89 / Tomb-Editor

Tomb Editor
55 stars 15 forks source link

TE: trying to remove an item with the keyboard, while in 2D map view, deletes room instead #821

Open Joey79100 opened 2 months ago

Joey79100 commented 2 months ago
  1. Put yourself in 2D map view
  2. Select a room that has at least 1 item in it
  3. Click on the item in the "Objects in room" panel to select it
  4. Hit Delete on your keyboard

-> Instead of removing the object, TE will try to delete the room instead (but asks confirmation first).

If you do the same thing, but in the 3D view, TE removes the object as expected.

Context: I was splitting / horizontally merging rooms, recreating portals, etc all from the 2D map view, and deleting the "new" duplicate Sun lights.

Which is fine. But my brain was running in "automatic mode": I tried to delete Suns this way (clicking, then hitting Delete), and I did notice a confirmation, but I thought it was for removing the object, because I was removing multiple portals a minute before so it was "just another confirmation". So I hit Enter without reading, and then I realized it deleted the room instead (which cannot be undone, so you need to reload a backup).

Considering I selecting the item was my last action before hitting Delete, it should remove the object.