diff options
| author | Paulb23 | 2016-06-30 15:12:14 +0100 |
|---|---|---|
| committer | Paulb23 | 2016-06-30 15:12:14 +0100 |
| commit | 050a514799148877ee56d6d678ad2ce45589aeb5 (patch) | |
| tree | 624cbbfd752beb5f7d4877496a1d115a83c2de49 /tools/editor/plugins/shader_graph_editor_plugin.cpp | |
| parent | d81b635957450a85efbf25066f9ee517ef10ec3f (diff) | |
| download | godot-050a514799148877ee56d6d678ad2ce45589aeb5.tar.gz godot-050a514799148877ee56d6d678ad2ce45589aeb5.tar.zst godot-050a514799148877ee56d6d678ad2ce45589aeb5.zip | |
Fixed signal connection prints when moving docks, issue 5498
Diffstat (limited to 'tools/editor/plugins/shader_graph_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/shader_graph_editor_plugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/editor/plugins/shader_graph_editor_plugin.cpp b/tools/editor/plugins/shader_graph_editor_plugin.cpp index d567c8e9b..dea2fe483 100644 --- a/tools/editor/plugins/shader_graph_editor_plugin.cpp +++ b/tools/editor/plugins/shader_graph_editor_plugin.cpp @@ -176,7 +176,9 @@ void GraphColorRampEdit::_input_event(const InputEvent& p_event) { void GraphColorRampEdit::_notification(int p_what){ if (p_what==NOTIFICATION_ENTER_TREE) { - picker->connect("color_changed",this,"_color_changed"); + if (!picker->is_connected("color_changed",this,"_color_changed")) { + picker->connect("color_changed",this,"_color_changed"); + } } if (p_what==NOTIFICATION_DRAW) { |
