mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Clarify API for top selected nodes in EditorSelection and make public
This commit is contained in:
parent
594d64ec24
commit
17db92b8b8
12 changed files with 119 additions and 102 deletions
|
@ -1806,8 +1806,9 @@ void SpriteFramesEditor::_remove_sprite_node() {
|
|||
void SpriteFramesEditor::_fetch_sprite_node() {
|
||||
Node *selected = nullptr;
|
||||
EditorSelection *editor_selection = EditorNode::get_singleton()->get_editor_selection();
|
||||
if (editor_selection->get_selected_node_list().size() == 1) {
|
||||
selected = editor_selection->get_selected_node_list().front()->get();
|
||||
const List<Node *> &top_node_list = editor_selection->get_top_selected_node_list();
|
||||
if (top_node_list.size() == 1) {
|
||||
selected = top_node_list.front()->get();
|
||||
}
|
||||
|
||||
bool show_node_edit = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue