godot
godot copied to clipboard
If you intend to create a child node, you may end up creating a sibling node.
Tested versions
- Reproducible in: Godot v4.3.dev (c9c17d6ca)
System information
Godot v4.3.dev (c9c17d6ca) - Debian GNU/Linux trixie/sid trixie - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 (nvidia) - Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 Threads)
Issue description
When a node is created, it is clearly selected in the left panel (labeled "scene") as well as in the left panel (labeled "inspector"). However, if you place your mouse pointer right over its name, right-click and select "Add Child Node", you will get a sibling node.
This problem is avoided by clicking first with the left button and then with the right button. However, it is annoying behavior.
Steps to reproduce
The key to reproducing this bug is to never left-click on the node name in the "scene" panel. YOU CAN EVEN MOVE AND ROTATE THE NODE (for example if it is a MeshInstance3D) in the central window, and this bug will still occur.
In the screen captures I show what I said. You can clearly see which node is selected and that I have pulled down the menu by right clicking. However, as seen in the image, a sibling node is created.
Minimal reproduction project (MRP)
I think a file is unnecessary
- Probably fixed by https://github.com/godotengine/godot/pull/75062
@kitbdev
- Probably fixed by Allow right and middle click focus #75062
I think that other bug was addressed during 2023... but I experience this bug in v4.3 built a few days ago.
can't repoduce on mac on neither Godot v4.2.1.stable nor 7d151c83811f8ac8873439826c16d88c83aba12f In fact right clicking does indeed select and focus. Might be OS dependent
config : macOS 14.4.0 - Apple M1 Pro - Apple M1 Pro (8 Threads)