Fully support unhardcoded sequences in the voxel render traits
This commit is contained in:
@@ -37,7 +37,7 @@ namespace OpenRA.Mods.TS.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, IdleSequence);
|
||||
yield return new VoxelAnimation(voxel, () => WVec.Zero,
|
||||
() => new[] { body.QuantizeOrientation(orientation(), facings) },
|
||||
() => false, () => 0, ShowShadow);
|
||||
|
||||
Reference in New Issue
Block a user