[BUGFIX] Fix instances of song metadata not assigning variation correctly #5401
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Linked Issues
Fixes #5400
Description
A PR made a change to
SongMetadata
's constructor to fix the charter not being saved but forgot to change many instances where it was being used, causing the variation to benull
(which falls back todefault
) and the charter to have the variation's name. In the linked issue, when adding a new variation this caused the default variation to be replaced by the new one (hence the difficulties wiped)This PR changes it so all instances of
new SongMetadata
assign the arguments correctly which should fix some other unnoticed issues as well.P.S: I've also noticed the New Song wizard window is missing a charter field, I would fix that but that's gonna require an assets PR, maybe for another PR.
Screenshots/Videos
TBA (maybe)