Disallow loopback connection in visual scripts and visual shaders

This commit is contained in:
Chaosus
2019-04-24 08:44:48 +03:00
parent 80f91c9d36
commit 21ca9f6c7c
2 changed files with 3 additions and 1 deletions

View File

@ -757,7 +757,6 @@ void VisualShaderEditor::_connection_request(const String &p_from, int p_from_in
int to = p_to.to_int();
if (!visual_shader->can_connect_nodes(type, from, p_from_index, to, p_to_index)) {
EditorNode::get_singleton()->show_warning(TTR("Unable to connect, port may be in use or connection may be invalid."));
return;
}