diff options
| author | Rémi Verschelde | 2016-06-30 16:34:38 +0200 |
|---|---|---|
| committer | GitHub | 2016-06-30 16:34:38 +0200 |
| commit | 729e61e1d5faedeee116f3e3189c5453e206643e (patch) | |
| tree | b84ff1680a3fe43e8a03e64fecc32ddd9fe44232 /tools/editor/plugins | |
| parent | e8a2c767d2c151b7960cc8a977b09664e10824e1 (diff) | |
| parent | 050a514799148877ee56d6d678ad2ce45589aeb5 (diff) | |
| download | godot-729e61e1d5faedeee116f3e3189c5453e206643e.tar.gz godot-729e61e1d5faedeee116f3e3189c5453e206643e.tar.zst godot-729e61e1d5faedeee116f3e3189c5453e206643e.zip | |
Merge pull request #5502 from Paulb23/dock_connection_spam_issue_5498
Fixed signal connection prints when moving docks, issue 5498
Diffstat (limited to 'tools/editor/plugins')
| -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) { |
