Fix make animations.
This commit is contained in:
@@ -69,12 +69,6 @@ namespace OpenRA.Graphics
|
||||
return Render(pos, WVec.Zero, 0, palette, 1f);
|
||||
}
|
||||
|
||||
public void Initialize(string sequenceName)
|
||||
{
|
||||
CurrentSequence = sequenceProvider.GetSequence(name, sequenceName);
|
||||
tickAlways = true;
|
||||
}
|
||||
|
||||
public void Play(string sequenceName)
|
||||
{
|
||||
PlayThen(sequenceName, null);
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace OpenRA.Traits
|
||||
public RenderSimple(Actor self)
|
||||
: this(self, MakeFacingFunc(self))
|
||||
{
|
||||
DefaultAnimation.PlayRepeating("idle");
|
||||
DefaultAnimation.PlayRepeating(NormalizeSequence(self, "idle"));
|
||||
self.Trait<IBodyOrientation>().SetAutodetectedFacings(DefaultAnimation.CurrentSequence.Facings);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user