summaryrefslogtreecommitdiff
path: root/editor/scene_tree_editor.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-08-09 19:14:06 +0200
committerkobewi <kobewi4e@gmail.com>2021-08-12 00:36:56 +0200
commite401cd58f1e2fa296bf2920c2af7562fb344011c (patch)
tree2364b46f4fe7493ecbeb527a177c3a6f6bf8eb78 /editor/scene_tree_editor.h
parent7188cb60127c1f4e900f080adbc47a55645f1645 (diff)
Add option to not expand tree on node select
Diffstat (limited to 'editor/scene_tree_editor.h')
-rw-r--r--editor/scene_tree_editor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/scene_tree_editor.h b/editor/scene_tree_editor.h
index acd49e8d92..4acd5d8486 100644
--- a/editor/scene_tree_editor.h
+++ b/editor/scene_tree_editor.h
@@ -64,6 +64,7 @@ class SceneTreeEditor : public Control {
AcceptDialog *error;
AcceptDialog *warning;
+ bool auto_expand_selected = true;
bool connect_to_script_mode;
bool connecting_signal;
@@ -152,6 +153,7 @@ public:
void update_tree() { _update_tree(); }
+ void set_auto_expand_selected(bool p_auto, bool p_update_settings);
void set_connect_to_script_mode(bool p_enable);
void set_connecting_signal(bool p_enable);