mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-03 10:09:19 +03:00
Fix the display of the tree diagram and optimize performance
Fix the display of the tree diagram and optimize performance.
This commit is contained in:
@@ -3650,12 +3650,13 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text,
|
||||
|
||||
Ref<VisualScriptNode> vnode;
|
||||
Ref<VisualScriptNode> vnode_old;
|
||||
bool port_node_exists = false;
|
||||
|
||||
bool port_node_exists;
|
||||
if (script->get_node(port_action_node).is_valid()) {
|
||||
if (script->has_node(port_action_node)) {
|
||||
port_node_exists = script->has_node(port_action_node);
|
||||
} else {
|
||||
port_node_exists = !script->has_node(port_action_node);
|
||||
}
|
||||
|
||||
if (port_node_exists && p_connecting) {
|
||||
vnode_old = script->get_node(port_action_node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user