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

duplicate conditional check
This commit is contained in:
Juan Linietsky 2015-11-18 19:17:01 -03:00
commit 536daca8f6

View file

@ -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;