Add a sequence reference attribute to label fallbacks.
This commit is contained in:
committed by
teinarss
parent
336656e8f7
commit
3a427c3630
@@ -82,6 +82,12 @@ namespace OpenRA.Mods.Common.Lint
|
||||
{
|
||||
if (string.IsNullOrEmpty(imageOverride))
|
||||
{
|
||||
if (!sequenceReference.ActorNameFallback)
|
||||
{
|
||||
emitWarning("Custom sprite image of actor {0} is null and there is no fallback.".F(actorInfo.Value.Name));
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach (var sequenceProvider in sequenceProviders)
|
||||
{
|
||||
var image = renderInfo.GetImage(actorInfo.Value, sequenceProvider, faction);
|
||||
|
||||
Reference in New Issue
Block a user