Browse Source

fixed shader graph length node, fixes #1632

Juan Linietsky 10 years ago
parent
commit
7852be816a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/resources/shader_graph.cpp

+ 1 - 1
scene/resources/shader_graph.cpp

@@ -2204,7 +2204,7 @@ void ShaderGraph::_add_node_code(ShaderType p_type,Node *p_node,const Vector<Str
 		}break;
 		case NODE_VEC_LEN: {
 
-			code += OUTNAME(p_node->id,0)+"=length("+p_inputs[1]+");\n";
+			code += OUTNAME(p_node->id,0)+"=length("+p_inputs[0]+");\n";
 
 		}break;
 		case NODE_DOT_PROD: {