Fix and improve auto-select of recently added / selected object

[#77744416]