Clarify API for top selected nodes in EditorSelection and make public

This commit is contained in:
Aaron Franke 2024-12-01 06:40:29 -08:00
parent 594d64ec24
commit 17db92b8b8
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
12 changed files with 119 additions and 102 deletions

View file

@ -292,7 +292,7 @@ Particles2DEditorPlugin::Particles2DEditorPlugin() {
}
void Particles2DEditorPlugin::_selection_changed() {
List<Node *> selected_nodes = EditorNode::get_singleton()->get_editor_selection()->get_selected_node_list();
List<Node *> selected_nodes = EditorNode::get_singleton()->get_editor_selection()->get_top_selected_node_list();
if (selected_particles.is_empty() && selected_nodes.is_empty()) {
return;
}