summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-10-03 20:51:56 +0300
committerGitHub <noreply@github.com>2022-10-03 20:51:56 +0300
commit1371a97acfb9263aaca7fa8642e95ba68534fa19 (patch)
treeb392a1aecf3050845aa15e9db6a8de29ee600c75 /scene/resources
parent321251a133920912f2764272626f32c788ab70b9 (diff)
parenta656dcec011f89697bd6e962f0a5e7edabfb7aa0 (diff)
Merge pull request #66829 from Chaosus/vs_fix_boolean
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/visual_shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp
index 320889679d..9174fcd9e3 100644
--- a/scene/resources/visual_shader.cpp
+++ b/scene/resources/visual_shader.cpp
@@ -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) {