Skip to content

Fix "Open Documentation" ignoring non-top-level nodes#119908

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
EdwardChanCH:fix_open_doc_selection
Jun 3, 2026
Merged

Fix "Open Documentation" ignoring non-top-level nodes#119908
Repiteo merged 1 commit into
godotengine:masterfrom
EdwardChanCH:fix_open_doc_selection

Conversation

@EdwardChanCH
Copy link
Copy Markdown
Contributor

@EdwardChanCH EdwardChanCH commented May 31, 2026

Closes #119907

Note: Split from #119617. Can be merged separately.

Changes:

  • "Open Documentation" now applies to all nodes in the selection, instead of non-top-level nodes only.

Video:

fix_open_doc_selection.mp4

@EdwardChanCH EdwardChanCH requested a review from a team as a code owner May 31, 2026 04:19
@EdwardChanCH EdwardChanCH changed the title Fix Open Documentation ignoring non-top-level nodes Fix "Open Documentation" ignoring non-top-level nodes May 31, 2026
@AThousandShips AThousandShips added this to the 4.x milestone Jun 1, 2026
@EdwardChanCH EdwardChanCH force-pushed the fix_open_doc_selection branch from f23d114 to 81765fd Compare June 2, 2026 17:38
Comment thread editor/docks/scene_tree_dock.cpp Outdated
Comment on lines 1314 to 1316
// TODO: Rename selection to full_selection?
const List<Node *> selection = editor_selection->get_full_selected_node_list();
for (const Node *node : selection) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TODO: Rename selection to full_selection?
const List<Node *> selection = editor_selection->get_full_selected_node_list();
for (const Node *node : selection) {
for (const Node *node : editor_selection->get_full_selected_node_list()) {

The list is no longer copied (I think?), but it should be fine in this case.

Copy link
Copy Markdown
Contributor Author

@EdwardChanCH EdwardChanCH Jun 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

The method comments in editor_data.h still read "Returns a copy...", but the actual code uses ObjectDB::get_instance<Node>(nid). I will update those comments in PR #119617.

@KoBeWi KoBeWi modified the milestones: 4.x, 4.7 Jun 2, 2026
@EdwardChanCH EdwardChanCH force-pushed the fix_open_doc_selection branch from 81765fd to e3bb264 Compare June 2, 2026 23:58
@EdwardChanCH EdwardChanCH force-pushed the fix_open_doc_selection branch from e3bb264 to d9c53f2 Compare June 3, 2026 00:01
@Repiteo Repiteo merged commit 1bfbab3 into godotengine:master Jun 3, 2026
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Jun 3, 2026

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.

"Open Documentation" ignores child nodes in selection

4 participants