Merge pull request #12274 from abcdefg30/bodyPreview

Fully support unhardcoded sequences in the voxel render traits
This commit is contained in:
Paul Chote
2016-10-29 14:53:47 +01:00
committed by GitHub
3 changed files with 6 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Common.Traits.Render
ActorPreviewInitializer init, RenderVoxelsInfo rv, string image, Func<WRot> orientation, int facings, PaletteReference p)
{
var body = init.Actor.TraitInfo<BodyOrientationInfo>();
var voxel = VoxelProvider.GetVoxel(image, "idle");
var voxel = VoxelProvider.GetVoxel(image, Sequence);
yield return new VoxelAnimation(voxel, () => WVec.Zero,
() => new[] { body.QuantizeOrientation(orientation(), facings) },
() => false, () => 0, ShowShadow);