summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-12 11:36:41 +0100
committerGitHub <noreply@github.com>2022-01-12 11:36:41 +0100
commitb5495783b2c1848eab321aedde3d3805d9be6b3b (patch)
tree5d03cfc7cffe8924f3dc56aea9811b5d9bdbf334 /modules
parentdc3b2e6ea26ae6d76dfdfa180d3dbd59cd8d0df8 (diff)
parentba7ed0579296464642f1cc90fe76590467793131 (diff)
Merge pull request #53185 from KoBeWi/viewing_pan
Diffstat (limited to 'modules')
-rw-r--r--modules/visual_script/editor/visual_script_editor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/visual_script/editor/visual_script_editor.cpp b/modules/visual_script/editor/visual_script_editor.cpp
index bc40f4f9b4..80e7862d9d 100644
--- a/modules/visual_script/editor/visual_script_editor.cpp
+++ b/modules/visual_script/editor/visual_script_editor.cpp
@@ -3753,6 +3753,11 @@ void VisualScriptEditor::_toggle_scripts_pressed() {
void VisualScriptEditor::_notification(int p_what) {
switch (p_what) {
+ case NOTIFICATION_ENTER_TREE:
+ case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
+ graph->set_panning_scheme((GraphEdit::PanningScheme)EDITOR_GET("interface/editors/sub_editor_panning_scheme").operator int());
+ } break;
+
case NOTIFICATION_READY: {
variable_editor->connect("changed", callable_mp(this, &VisualScriptEditor::_update_members));
variable_editor->connect("changed", callable_mp(this, &VisualScriptEditor::_update_graph), varray(-1), CONNECT_DEFERRED);