浏览代码

duplicate conditional check

firefly2442 10 年之前
父节点
当前提交
0a45fb6311
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {
 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;
 		return;
 
 
 	List<int> existing;
 	List<int> existing;