Explorar o código

Merge pull request #2631 from firefly2442/duplicate-conditional-fix

duplicate conditional check
Juan Linietsky %!s(int64=9) %!d(string=hai) anos
pai
achega
536daca8f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/editor/plugins/shader_graph_editor_plugin.cpp

+ 1 - 1
tools/editor/plugins/shader_graph_editor_plugin.cpp

@@ -2542,7 +2542,7 @@ void ShaderGraphView::_notification(int p_what) {
 
 void ShaderGraphView::add_node(int p_type, const Vector2 &location) {
 
-	if ((p_type==ShaderGraph::NODE_INPUT||p_type==ShaderGraph::NODE_INPUT) && graph->node_count(type, p_type)>0)
+	if (p_type==ShaderGraph::NODE_INPUT && graph->node_count(type, p_type)>0)
 		return;
 
 	List<int> existing;