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 scene node selection problem when no auto expand #94773

Conversation

Hilderin
Copy link
Contributor

When the option Docks > Scene Tree > Auto Expand to Selected was disabled, the selected node was not updated in the method SceneTreeEditor::set_selected. Additionally, even if the node was not collapsed, tree->ensure_cursor_is_visible was never called, preventing the user from seeing the node after its creation if the tree was long enough. The same problem was present when navigating with the back/forward buttons of the Inspector.

Problem reproduction:

godot.windows.editor.dev.x86_64_gdbCU4VPiT.mp4
godot.windows.editor.dev.x86_64_6iS9OR0YIH.mp4

@Hilderin Hilderin requested review from a team as code owners July 26, 2024 04:42
@AThousandShips AThousandShips added bug topic:editor cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Jul 26, 2024
@AThousandShips AThousandShips added this to the 4.4 milestone Jul 26, 2024
@Hilderin Hilderin force-pushed the fix-add-child-node-problem-no-auto-expand branch from 75072b9 to e46280d Compare August 17, 2024 10:33
@akien-mga akien-mga merged commit 219eba9 into godotengine:master Aug 19, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release topic:editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add child node problem with selection.
4 participants