diff options
author | Anilforextra <anilforextra@gmail.com> | 2021-08-13 12:22:38 +0545 |
---|---|---|
committer | Anilforextra <anilforextra@gmail.com> | 2021-08-13 12:22:38 +0545 |
commit | d73d8b8d78f4301705f64993edb8701ca5208902 (patch) | |
tree | 148ff5600efea25fec674375d0b5a3607b36f33b /modules/visual_script | |
parent | a98589a4497bdff15c66a98b6d07241addddae2c (diff) |
Fix duplicate conditions.
Diffstat (limited to 'modules/visual_script')
-rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index c37fbb6bb3..f3b6d74b7d 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -2899,9 +2899,8 @@ void VisualScriptEditor::_graph_connected(const String &p_from, int p_from_slot, if (!converted) { undo_redo->add_do_method(script.ptr(), "data_connect", p_from.to_int(), from_port, p_to.to_int(), to_port); undo_redo->add_undo_method(script.ptr(), "data_disconnect", p_from.to_int(), from_port, p_to.to_int(), to_port); - } - // Update nodes in graph - if (!converted) { + + // Update nodes in graph undo_redo->add_do_method(this, "_update_graph", p_from.to_int()); undo_redo->add_do_method(this, "_update_graph", p_to.to_int()); undo_redo->add_undo_method(this, "_update_graph", p_from.to_int()); |