Skip to content

Commit

Permalink
GH-470 Operator node - always autowire first eligible pin
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jul 10, 2024
1 parent fd31f74 commit 54c7fde
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/editor/graph/autowire_selections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ void OrchestratorScriptAutowireSelections::popup_autowire()
return;
}

// For operator nodes, always auto-wire the first eligible pin.
if (Object::cast_to<OScriptNodeOperator>(_pin->get_owning_node()))
{
_choice = choices[0];
_close_window();
return;
}

TreeItem* root = _tree->create_item();
for (int i = 0; i < choices.size(); i++)
{
Expand Down

0 comments on commit 54c7fde

Please sign in to comment.