Use new IAutoRenderSize for determining actor render bounds

This commit is contained in:
reaperrr
2017-09-10 10:44:31 +02:00
committed by Pavel Penev
parent 2501a93b87
commit 56b6aabbb8
26 changed files with 158 additions and 3 deletions

View File

@@ -238,6 +238,12 @@ namespace OpenRA.Mods.Common.Traits.Render
// Required by WithSpriteBody and WithInfantryBody
public int2 AutoSelectionSize(Actor self)
{
return AutoRenderSize(self);
}
// Required by WithSpriteBody and WithInfantryBody
public int2 AutoRenderSize(Actor self)
{
return anims.Where(b => b.IsVisible
&& b.Animation.Animation.CurrentSequence != null)