mirror of
https://github.com/godotengine/godot.git
synced 2025-02-03 12:57:35 +00:00
duplicate conditional check
This commit is contained in:
parent
6637a86518
commit
0a45fb6311
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user