Facepunch / sbox-issues

181 stars 12 forks source link

Inspecting a GameObject persists even after its deleted #7487

Open Retroeer opened 1 week ago

Retroeer commented 1 week ago

Describe the bug

If you've selected a GameObject and it's deleted, the Inspector will show a ghost of that GameObject without any of the components it once had. As the GameObject is deleted, there's really no point to seeing its ghost.

To Reproduce

  1. Click a GameObject
  2. Make a component that deletes it in like 5 seconds or something
  3. Wait for it to be deleted

Expected behavior

The Inspector should be clearing itself back to nothing, or go to the previously selected GameObject if we want to be fancy (it would be quite nice)

Media/Files

No response

Additional context

No response