Fix exception if .First() would find nothing #23
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
IllusionMods/AnimationLoader!23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm not entirely sure if this is a situation that should ever be able to happen? But I've seen some logs where it did, and when it happens it totally crashes the loading process.
It should at least log a warning if not finding one is unexpected. If the animation won't load properly if this is wrong then skipping the animation with a warning would be better.
If the manifest has wrong NeckDonorId this certainly can fail.
For a wrong DonorPoseId it has to skip like it does and logs a waring. The animation should load properly not with an intended different NeckDonor. A warning will catch this.
Can't think of any other reason for failure.
If you can verify the validity of the search and log a warning with the NeckDonorId when it fails it would be better.
Looks ok.