Reset to default value doesn't always work #670
Labels
bug/confirmed
Bug/regression has been confirmed.
cherrypick:2.0
Requires cherry-pick to Orchestrator 2.0
cherrypick:2.1
Requires cherry-pick to Orchestrator 2.1
kind/bug
A bug or regression in expected behavior.
Milestone
Describe the bug
For example, the
PrintString
node uses a default value2
for duration; however, theReset to Default Value
context-menu option on the pin resets the value back to0
.The
Reset to Default Value
uses theget_generated_default_value()
pin function to know what to reset the value to; however, this is always populated with the Variant's default initial "zero" value, and for a float this is0
.Perhaps the
create_pin
function can take one additional argument, the "generated default value", which will be set as the generated default value for use cases where the default value is explicitly not the "zero" value for the pin type?Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Godot full version
No response
Orchestrator version
2.1
Additional information
No response
The text was updated successfully, but these errors were encountered: