Skip to content

Commit

Permalink
Fix boolean connection to ports of other types in visual shader
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosus committed Oct 3, 2022
1 parent 321251a commit a656dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/visual_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ bool VisualShader::can_connect_nodes(Type p_type, int p_from_node, int p_from_po
}

bool VisualShader::is_port_types_compatible(int p_a, int p_b) const {
return MAX(0, p_a - 4) == (MAX(0, p_b - 4));
return MAX(0, p_a - 5) == (MAX(0, p_b - 5));
}

void VisualShader::connect_nodes_forced(Type p_type, int p_from_node, int p_from_port, int p_to_node, int p_to_port) {
Expand Down

0 comments on commit a656dce

Please sign in to comment.