Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHANGE: Lookup prefers first enabled action (case 1207550). #1222

Merged
merged 2 commits into from
Oct 19, 2020

Conversation

Rene-Damm
Copy link
Contributor

Addresses 1207550 (internal).

It's a slight tweak to the existing logic. Before, ambiguities in action names were simply ignored entirely. If you did asset.FindAction("myAction") it returned the first action called "myAction". If there were multiple, you still always got the first.

With this change, the lookup now treats the first enabled action preferentially. Otherwise, it works as before. Most notably, no exception is thrown and no error is logged when an ambiguity exists.

@Rene-Damm Rene-Damm merged commit 36705e7 into develop Oct 19, 2020
@Rene-Damm Rene-Damm deleted the change-action-lookup branch October 19, 2020 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants