Skip to content

Commit 813562c

Browse files
authored
Fixed duration property getter (#518)
1 parent 4d1d453 commit 813562c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/UIDataCodeGen/CodeGen/CSharp/CSharpInstantiatorGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ void WriteFrameratePropertyImpl(CodeBuilder builder)
617617
void WriteDurationPropertyImpl(CodeBuilder builder)
618618
{
619619
builder.WriteSummaryComment("Gets the duration of the animation.");
620-
builder.WriteLine($"public TimeSpan Duration => TimeSpan.FromTicks({SourceInfo.DurationTicksFieldName});");
620+
builder.WriteLine($"public TimeSpan Duration => TimeSpan.FromTicks({SourceInfo.SourceMetadata.LottieMetadata.Duration.Time.Ticks});");
621621
}
622622

623623
/// <summary>

0 commit comments

Comments
 (0)