summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfirefly2442 <firefly2442@gmail.com>2015-10-18 20:50:32 -0500
committerfirefly2442 <firefly2442@gmail.com>2015-10-18 20:50:32 -0500
commit0a45fb6311023ae39be74d71054fd0042a8ba183 (patch)
treea1555b7eece1ef514e7cf697ea5f3dbd1bde455b /tools
parent6637a865187422b5b8303231dd43a38a5f5abd51 (diff)
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;