Fixed a bug as uncovered by the new unit test (to be checked in in a separate submit).

#jira UEA-376
#rb Aaron.Cox

[CL 4985309 by Helge Mathee in Dev-Anim branch]
This commit is contained in:
Helge Mathee
2019-02-13 13:26:31 -05:00
parent a521040194
commit ab5fafb937

View File

@@ -153,7 +153,7 @@ float UKismetAnimationLibrary::K2_CalculateVelocityFromPositionHistory(
NextIndex = 0;
}
History.Positions[NextIndex] = Position;
History.Velocities[History.LastIndex] = LengthOfV;
History.Velocities[NextIndex] = LengthOfV;
History.LastIndex = NextIndex;
}
else