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 wrong inspected node after drag&drop #94105

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jul 8, 2024

Fixes #93935

The problem was that after dropping a node the inspector is updated automagically due to EditorSelection change, and the change does not happen when nodes are simply moved in parent instead of reparented (because they don't leave scene tree).

The fix relies on the fact that the editing history holds the old object after hovering, which technically can be considered a bug (as I noted in #91265 (review)), but right now it's the simplest solution.

@KoBeWi KoBeWi added this to the 4.3 milestone Jul 8, 2024
@KoBeWi KoBeWi requested a review from a team as a code owner July 8, 2024 21:56
@akien-mga akien-mga merged commit b0467d0 into godotengine:master Jul 8, 2024
17 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the same_parent_new_problems branch July 8, 2024 22:44
@Hilderin
Copy link
Contributor

Hilderin commented Jul 9, 2024

Thanks!

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.

Wrong node in inspector after drag&drop in tree and a delay
3 participants