Saner selection code for instanced scenes in 3D,  should close #21447
Saner selection code for instanced scenes in 3D,  should close #21447

Selecting instanced scenes still doesn't work properly because gizmos are not being added to instanced nodes.
I will probably work on fixing all the shenanigans around selection, but that will take some time.
This part of the code should work better for the moment.

Zylann/godot,Shockblast/godot,akien-mga/godot,godotengine/godot,groud/godot,Zylann/godot,firefly2442/godot,Zylann/godot,okamstudio/godot,guilhermefelipecgs/godot,vkbsb/godot,okamstudio/godot,NateWardawg/godot,MarianoGnu/godot,Paulloz/godot,vnen/godot,pkowal1982/godot,vnen/godot,mcanders/godot,Paulloz/godot,godotengine/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,Faless/godot,groud/godot,NateWardawg/godot,vnen/godot,BastiaanOlij/godot,godotengine/godot,NateWardawg/godot,NateWardawg/godot,Shockblast/godot,DmitriySalnikov/godot,ex/godot,BastiaanOlij/godot,Faless/godot,sanikoyes/godot,honix/godot,DmitriySalnikov/godot,josempans/godot,vnen/godot,firefly2442/godot,Shockblast/godot,NateWardawg/godot,pkowal1982/godot,guilhermefelipecgs/godot,Faless/godot,vkbsb/godot,BastiaanOlij/godot,Paulloz/godot,MarianoGnu/godot,mcanders/godot,okamstudio/godot,vkbsb/godot,Zylann/godot,ZuBsPaCe/godot,Zylann/godot,okamstudio/godot,vkbsb/godot,guilhermefelipecgs/godot,Paulloz/godot,mcanders/godot,godotengine/godot,Valentactive/godot,ex/godot,Shockblast/godot,MarianoGnu/godot,okamstudio/godot,BastiaanOlij/godot,sanikoyes/godot,ex/godot,mcanders/godot,pkowal1982/godot,godotengine/godot,Shockblast/godot,DmitriySalnikov/godot,sanikoyes/godot,okamstudio/godot,honix/godot,Shockblast/godot,vnen/godot,Zylann/godot,MarianoGnu/godot,Shockblast/godot,josempans/godot,akien-mga/godot,josempans/godot,honix/godot,sanikoyes/godot,firefly2442/godot,groud/godot,vkbsb/godot,NateWardawg/godot,pkowal1982/godot,BastiaanOlij/godot,honix/godot,Valentactive/godot,josempans/godot,MarianoGnu/godot,josempans/godot,okamstudio/godot,vnen/godot,mcanders/godot,NateWardawg/godot,Paulloz/godot,vnen/godot,Zylann/godot,BastiaanOlij/godot,groud/godot,Valentactive/godot,Faless/godot,ex/godot,Valentactive/godot,ZuBsPaCe/godot,sanikoyes/godot,vkbsb/godot,josempans/godot,ex/godot,godotengine/godot,Faless/godot,Paulloz/godot,MarianoGnu/godot,godotengine/godot,honix/godot,guilhermefelipecgs/godot,firefly2442/godot,Faless/godot,akien-mga/godot,ZuBsPaCe/godot,ZuBsPaCe/godot,vnen/godot,okamstudio/godot,pkowal1982/godot,Valentactive/godot,ZuBsPaCe/godot,NateWardawg/godot,Faless/godot,akien-mga/godot,honix/godot,DmitriySalnikov/godot,Paulloz/godot,akien-mga/godot,Valentactive/godot,ex/godot,firefly2442/godot,pkowal1982/godot,okamstudio/godot,BastiaanOlij/godot,mcanders/godot,ex/godot,godotengine/godot,firefly2442/godot,akien-mga/godot,sanikoyes/godot,sanikoyes/godot,firefly2442/godot,firefly2442/godot,groud/godot,DmitriySalnikov/godot,akien-mga/godot,ZuBsPaCe/godot,Faless/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,pkowal1982/godot,ZuBsPaCe/godot,Zylann/godot,sanikoyes/godot,Valentactive/godot,DmitriySalnikov/godot,groud/godot,Valentactive/godot,pkowal1982/godot,okamstudio/godot,MarianoGnu/godot,josempans/godot,josempans/godot,guilhermefelipecgs/godot,MarianoGnu/godot,NateWardawg/godot,Shockblast/godot,guilhermefelipecgs/godot,vkbsb/godot,akien-mga/godot,ex/godot,vkbsb/godot