File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public void TestLoad()
4040 Assert . That ( ani . Layer , Is . EqualTo ( 1 ) ) ;
4141 Assert . That ( ani . BlendIn , Is . EqualTo ( 0.0100000007f ) ) ;
4242 Assert . That ( ani . BlendOut , Is . EqualTo ( - 0.0100000007f ) ) ;
43- Assert . That ( ani . Duration , Is . EqualTo ( 400.0f ) ) ;
43+ Assert . That ( ani . Duration . TotalSeconds , Is . EqualTo ( 0.4 ) ) ;
4444 Assert . That ( ani . Speed , Is . EqualTo ( 0.0250000004f ) ) ;
4545 Assert . That ( ani . Flags , Is . EqualTo ( 0 ) ) ;
4646 Assert . That ( ani . FrameCount , Is . EqualTo ( 10 ) ) ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ internal MorphAnimation(UIntPtr handle)
5454 public int Layer => Native . ZkMorphAnimation_getLayer ( _handle ) ;
5555 public float BlendIn => Native . ZkMorphAnimation_getBlendIn ( _handle ) ;
5656 public float BlendOut => Native . ZkMorphAnimation_getBlendOut ( _handle ) ;
57- public TimeSpan Duration => TimeSpan . FromSeconds ( Native . ZkMorphAnimation_getDuration ( _handle ) ) ;
57+ public TimeSpan Duration => TimeSpan . FromMilliseconds ( Native . ZkMorphAnimation_getDuration ( _handle ) ) ;
5858 public float Speed => Native . ZkMorphAnimation_getSpeed ( _handle ) ;
5959 public byte Flags => Native . ZkMorphAnimation_getFlags ( _handle ) ;
6060 public uint FrameCount => Native . ZkMorphAnimation_getFrameCount ( _handle ) ;
You can’t perform that action at this time.
0 commit comments