Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene Tree: a Node gets deselected and another one gets selected if the drag / drop is performed in a particular way #94320

Closed
inhalt120g opened this issue Jul 13, 2024 · 1 comment · Fixed by #96124

Comments

@inhalt120g
Copy link

Tested versions

v4.3.beta3.official [82cedc8]

System information

Newest MacOS / Mac mini M1

Issue description

When dragging a node, stopping over another Node without releasing dragging selects that node for potential selecting for cases where the dragging didn't go through.

Steps to reproduce

Just do like in this gif, and you'll end up with a "" selected even though you never selected it.
godot selects a hovered over node

Basically while dragging, stop over any Node without dropping, and the hovered over node will turn blue (at this point the Inspector will start showing info of the hovered over Node).
Now finish dragging and dropping the node you started the operation with, for example drag and drop it into the "empty" space of the Scene Tree.
The Node you hovered over will get selected and the original node will be in the original position and deselected (I'd expect the end result to be the original node to end up on the bottom and stay selected without any other nodes getting selected).

Minimal reproduction project (MRP)

Godot IDE.

@AThousandShips
Copy link
Member

AThousandShips commented Jul 13, 2024

Seems related to:

And some unintended consequence from that fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants