Allow sequences to define a Scale factor.
This commit is contained in:
@@ -280,7 +280,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
{
|
||||
return anims.Where(b => b.IsVisible
|
||||
&& b.Animation.Animation.CurrentSequence != null)
|
||||
.Select(a => (a.Animation.Animation.Image.Size.XY * Info.Scale).ToInt2())
|
||||
.Select(a => (a.Animation.Animation.Image.Size.XY * a.Animation.Animation.CurrentSequence.Scale * Info.Scale).ToInt2())
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user