Use new IAutoRenderSize for determining actor render bounds
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user