You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Little fix: don't create an empty undo/redo command when trying to add a second Input GraphNode
This commit is contained in:
@@ -2162,6 +2162,9 @@ 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)
|
||||
return;
|
||||
|
||||
List<int> existing;
|
||||
graph->get_node_list(type,&existing);
|
||||
existing.sort();
|
||||
|
||||
Reference in New Issue
Block a user