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

Fix no reparent after hover and no move. #91439

Conversation

ajreckof
Copy link
Member

@ajreckof ajreckof commented May 2, 2024

Fixes #91254

I'm not sure why this was setting selected while it is not selecting it but just putting a mark. The only thing I could see as difference is wether the node is selected at the end of the drag or not so I postponed the selection to the end of the drag. I think my modification made so that set_selected actually do the modification to the EditorSelection which make sense but unvoluntarily this was relying on the broken behavior of it not making the modification.

Edit : forgot to push

@ajreckof ajreckof requested a review from a team as a code owner May 2, 2024 05:02
@YeldhamDev YeldhamDev added this to the 4.3 milestone May 2, 2024
@ajreckof ajreckof force-pushed the Fix-no-reparent-after-hover-and-no-move- branch from 4be19b5 to 9f5e385 Compare May 2, 2024 05:28
@ajreckof ajreckof force-pushed the Fix-no-reparent-after-hover-and-no-move- branch from 9f5e385 to 0bde84f Compare May 2, 2024 05:28
@Hilderin
Copy link
Contributor

Hilderin commented May 6, 2024

I tested this PR and everything seems to work fine. My only concern is that I don't think the "hover" node should be selected after a drag&drop. The standard in UI is that after a drag&drop the moved nodes are selected.

Some exemples:
https://github.com/godotengine/godot/assets/81109165/153c56a3-5638-4bd6-a556-896055fa03c7

blender_QePPCSMgn6.mp4

@KoBeWi
Copy link
Member

KoBeWi commented May 12, 2024

Yep, if you reparent node, the dropped node should be selected.

@akien-mga
Copy link
Member

Is this still needed after #91265, or fully superseded by that PR?

@KoBeWi
Copy link
Member

KoBeWi commented Jun 17, 2024

Probably not, as the issue is fully resolved.

@akien-mga akien-mga closed this Jun 17, 2024
@akien-mga akien-mga removed this from the 4.3 milestone Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scene tree drag&drop does not work after delay
5 participants