You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Clarify API for top selected nodes in EditorSelection and make public
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user