Remove SetDefaultAnimationVariant from leave so units can keep their old variants when moving to a new common state. For example, units coming to idle from attacking will show their weapons while units coming to idle from gathering resources will show the carried resources.
Also reset formation animations after leaving walking state, since units can leave the walking state without receiving a MoveCompleted message in which case they'd keep their formation-specific animations.
Details
Details
- Reviewers
wraitii - Group Reviewers
Restricted Owners Package (Owns No Changed Paths)
Test that units have the correct animations.
For formation animations, test e.g. with spears in phalanx formation with shields in front of them whereas normally they have shields on their side.
Diff Detail
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Branch
- /ps/trunk
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 5105 Build 8752: Vulcan Build Jenkins Build 8751: arc lint + arc unit