Tomb-Editor icon indicating copy to clipboard operation
Tomb-Editor copied to clipboard

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

Open Joey79100 opened this issue 9 months ago • 0 comments

  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.

  • Hitting Delete to remove a portal asks for confirmation.
  • Hitting Delete to remove a regular object doesn't ask for confirmation.

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.

Joey79100 avatar May 11 '24 13:05 Joey79100