Merge pull request #10141 from reaperrr/fix-anim-cancel
Fix actors not going back to idle animation after custom animation
This commit is contained in:
@@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
var wsb = hostBuilding.Trait<WithSpriteBody>();
|
||||
if (wsb.DefaultAnimation.HasSequence("active"))
|
||||
wsb.PlayCustomAnimation(hostBuilding, "active");
|
||||
wsb.PlayCustomAnimation(hostBuilding, "active", () => wsb.CancelCustomAnimation(self));
|
||||
|
||||
var sound = pool.Info.RearmSound;
|
||||
if (sound != null)
|
||||
|
||||
Reference in New Issue
Block a user