Add depth buffer support to sprites and sequences.
This commit is contained in:
@@ -228,7 +228,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
return anims.Where(b => b.IsVisible
|
||||
&& b.Animation.Animation.CurrentSequence != null)
|
||||
.Select(a => (a.Animation.Animation.Image.Size * info.Scale).ToInt2())
|
||||
.Select(a => (a.Animation.Animation.Image.Size.XY * info.Scale).ToInt2())
|
||||
.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user