Allow guessing of sprite sequence length from number of frames.
This commit is contained in:
committed by
reaperrr
parent
15f8469272
commit
2049d1b26a
@@ -180,7 +180,7 @@ namespace OpenRA.Mods.Common.Graphics
|
||||
{
|
||||
MiniYaml length;
|
||||
if (d.TryGetValue("Length", out length) && length.Value == "*")
|
||||
Length = frameCount - Start;
|
||||
Length = Frames != null ? Frames.Length : frameCount - Start;
|
||||
else
|
||||
Length = LoadField(d, "Length", 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user