godot icon indicating copy to clipboard operation
godot copied to clipboard

If you intend to create a child node, you may end up creating a sibling node.

Open L30n4rd0-4rg3nt1n0 opened this issue 1 year ago • 2 comments

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. 01 02 03 04

Minimal reproduction project (MRP)

I think a file is unnecessary

L30n4rd0-4rg3nt1n0 avatar Mar 23 '24 21:03 L30n4rd0-4rg3nt1n0

  • Probably fixed by https://github.com/godotengine/godot/pull/75062

kitbdev avatar Mar 23 '24 22:03 kitbdev

@kitbdev

I think that other bug was addressed during 2023... but I experience this bug in v4.3 built a few days ago.

L30n4rd0-4rg3nt1n0 avatar Mar 24 '24 02:03 L30n4rd0-4rg3nt1n0

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)

ajreckof avatar Mar 26 '24 18:03 ajreckof