summaryrefslogtreecommitdiffstats
path: root/editor/node_dock.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-10-21 15:58:07 +0200
committerkobewi <kobewi4e@gmail.com>2023-06-12 17:07:47 +0200
commitd17c522991159260b95621a45383fde408eb83c9 (patch)
treeca1bd4b384b3f18fa6b43333caad7836d86491c9 /editor/node_dock.h
parent2d6b880987bc600cda586b281fcbe26791e92e09 (diff)
downloadredot-engine-d17c522991159260b95621a45383fde408eb83c9.tar.gz
Focus current node after connecting
Diffstat (limited to 'editor/node_dock.h')
-rw-r--r--editor/node_dock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/node_dock.h b/editor/node_dock.h
index e9dcc41d48..cc22171453 100644
--- a/editor/node_dock.h
+++ b/editor/node_dock.h
@@ -47,6 +47,7 @@ class NodeDock : public VBoxContainer {
HBoxContainer *mode_hb = nullptr;
Label *select_a_node = nullptr;
+ Node *last_valid_node = nullptr;
private:
static NodeDock *singleton;
@@ -60,6 +61,7 @@ protected:
public:
void set_node(Node *p_node);
+ void restore_last_valid_node();
void show_groups();
void show_connections();