Ver Fonte

Merge pull request #66829 from Chaosus/vs_fix_boolean

Yuri Rubinsky há 3 anos atrás
pai
commit
1371a97acf
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      scene/resources/visual_shader.cpp

+ 1 - 1
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 {
 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) {
 void VisualShader::connect_nodes_forced(Type p_type, int p_from_node, int p_from_port, int p_to_node, int p_to_port) {