KybernetikGames/animancer

Transition Library 8.0.0a2 reordering transitions deletes aliases and causes assert log

shortestyard57 opened this issue · 3 comments

Environment

  • Animancer Version Number: 8.0.0a2
  • Animancer Pro or Lite: Pro
  • Unity Version: 2022.3.32f1
  • Platform: Windows

Description

Reordering transitions in the transition library Transition Modifiers page causes aliases set in Transition Aliases page to be deleted and shows console message Aliases aren't properly sorted. Console stack is attached.

Reproduction

Steps to reproduce the bug:

  1. Transition library open in editor window.
  2. Drag transition to another location to reorder.
  3. Change to Transition Aliases view.
  4. Aliases for any transition that was reordered is removed
  5. Console continuously fires assert Aliases aren't properly sorted
  6. Aliases return and console message stops when Revert button in library windows is used.
    [Assert] Aliases aren't properly sorted - console stack.txt

Thanks for the bug report, that one's an easy fix.

  1. Open TransitionLibrarySort.cs.
  2. Go to SetTransitions.
  3. Add library.SortAliases(); at the end of that method.

I'll keep this issue open until I've released an update with the fix in it.