mirror of
https://github.com/godotengine/godot.git
synced 2025-03-26 00:16:37 +08:00
If you had a tree like Node2D->Sprite->Camera2D and you write a code like $Node2D/Spr and chose the autocompletion sugested Node2D/Sprite, the resulting string was $Node2D/Node2D/Sprite instead $Node2D/Sprite. If you chose Node2D/Sprite/Camera2D, then you ended with $Node2D/Node2D/Sprite/Camera2D. Fix #15813. (cherry picked from commit 95f186b62184c846571c7278842ac4923f461d5a)