summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-11-18 19:17:01 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-11-18 19:17:01 -0300
commit536daca8f6c83ffd85ce3c3057d1f14639051c25 (patch)
treea6a3b84052288d82975d3e291bbe44ee9a99d469 /tools
parente8435cc721e261caba757dc1537787b7ff389afc (diff)
parent0a45fb6311023ae39be74d71054fd0042a8ba183 (diff)
Merge pull request #2631 from firefly2442/duplicate-conditional-fix
duplicate conditional check
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/plugins/shader_graph_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/shader_graph_editor_plugin.cpp b/tools/editor/plugins/shader_graph_editor_plugin.cpp
index 684e7e32ef..3a7dc26466 100644
--- a/tools/editor/plugins/shader_graph_editor_plugin.cpp
+++ b/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;