Bake Animation Sequence needs to load the package it will overwrite to use the correct updating logic

When using “Bake animation sequence” to an existing sequence, we need to load the package, otherwise FindPackage may return nullptr and we’ll use the “new sequence from scratch” logic.

Pull request located at

https://github.com/EpicGames/UnrealEngine/pull/13751

Steps to Reproduce

Steps To Reproduce

  1. Open editor without any assets open
  2. Open level sequence
  3. Right click track -> Bake Animation Sequence
  4. Save over existing sequence
  5. Note that it removes existing curves and resets additive animation type, instead of just updating

This is because the package was not loaded.

Thanks for raising this, I will be submitting this pull request today or tomorrow into mainline.

Dustin