From 67ba8c1bccc187703661ea81b472b54055f448e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Tue, 12 Jul 2016 07:32:49 +0200 Subject: [PATCH] Add missing sequence references to TD render traits. --- OpenRA.Mods.Cnc/Traits/Render/WithDeliveryAnimation.cs | 4 ++-- OpenRA.Mods.Cnc/Traits/Render/WithRoof.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Cnc/Traits/Render/WithDeliveryAnimation.cs b/OpenRA.Mods.Cnc/Traits/Render/WithDeliveryAnimation.cs index 6676a486ed..b58f701964 100644 --- a/OpenRA.Mods.Cnc/Traits/Render/WithDeliveryAnimation.cs +++ b/OpenRA.Mods.Cnc/Traits/Render/WithDeliveryAnimation.cs @@ -18,9 +18,9 @@ namespace OpenRA.Mods.Cnc.Traits.Render [Desc("Building animation to play when ProductionAirdrop is used to deliver units.")] public class WithDeliveryAnimationInfo : ITraitInfo, Requires { - public readonly string ActiveSequence = "active"; + [SequenceReference] public readonly string ActiveSequence = "active"; - public readonly string IdleSequence = "idle"; + [SequenceReference] public readonly string IdleSequence = "idle"; public object Create(ActorInitializer init) { return new WithDeliveryAnimation(init.Self, this); } } diff --git a/OpenRA.Mods.Cnc/Traits/Render/WithRoof.cs b/OpenRA.Mods.Cnc/Traits/Render/WithRoof.cs index 7659e31c49..6540366e7f 100644 --- a/OpenRA.Mods.Cnc/Traits/Render/WithRoof.cs +++ b/OpenRA.Mods.Cnc/Traits/Render/WithRoof.cs @@ -19,7 +19,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render [Desc("Provides an overlay for the Tiberian Dawn hover craft.")] public class WithRoofInfo : ITraitInfo, Requires { - public readonly string Sequence = "roof"; + [SequenceReference] public readonly string Sequence = "roof"; public object Create(ActorInitializer init) { return new WithRoof(init.Self, this); } }