InputAction pin does not auto-select first element #582
Labels
bug/confirmed
Bug/regression has been confirmed.
cherrypick:2.0
Requires cherry-pick to Orchestrator 2.0
kind/bug
A bug or regression in expected behavior.
Milestone
Describe the bug
Inside the
OrchestratorGraphNodePinInputAction::_populate_action_list()
method, if no item is selected, the pin's default value is assigned an empty variant, which can lead to a series of spammed errors about unable to locate an input action with an empty string.Expected behavior
There should be some type of error or the item shown as being selected should be auto-selected.
Actual behavior
Runtime throws an error
How to Reproduce?
Input
singleton to the graph.Is Action Pressed
functionGodot full version
4.3.beta3
Orchestrator version
2.1.rc2
Additional information
For 2.1, it would make sense for now to enforce auto-selection of the first action at index 0 when first placing the node. This aligns with what a user would initially expect, given there is no
--Select--
type of placeholder option.For 2.2, we should rethink this specific pin's validation routine. Ideally, it would be helpful to introduce a
--Select--
placeholder and then throw an error during validation and runtime if the user never explicitly picked an action name. The main issue here, specifically with runtime validation, is how to know what member function calls require such extended validation or, more specifically, which function calls use this input action list of values since this is handled at the editor layer and not the underlying resource layer, we're currently limited.The text was updated successfully, but these errors were encountered: