Improve SceneTreeEditor usability

- Mark contextually relevant node
- Remember/Clear selection as appropriate
- Scroll to marked/selected node
This commit is contained in:
RedMser
2023-11-26 16:44:18 +01:00
parent 29b3d9e9e5
commit 9cd30208d6
9 changed files with 50 additions and 19 deletions

View File

@ -616,7 +616,7 @@ void ConnectDialog::init(const ConnectionData &p_cd, const PackedStringArray &p_
signal_args = p_signal_args;
tree->set_selected(nullptr);
tree->set_marked(source, true);
tree->set_marked(source);
if (p_cd.target) {
set_dst_node(static_cast<Node *>(p_cd.target));