KybernetikGames / animancer

Documentation for the Animancer Unity Plugin.
63 stars 8 forks source link

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

Closed shortestyard57 closed 1 month ago

shortestyard57 commented 1 month ago

Environment

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
KybernetikGames commented 1 month ago

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.
KybernetikGames commented 1 month ago

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

KybernetikGames commented 1 month ago

This issue is fixed in Animancer v8.0a3.