Skip to content

Commit

Permalink
Merge pull request #66829 from Chaosus/vs_fix_boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosus authored Oct 3, 2022
2 parents 321251a + a656dce commit 1371a97
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 1371a97

Please sign in to comment.