Fix PSD cache not getting cleared and produced incorrect poses at the end

#jira: FORT-154248
#rb:Helge.Matthee


#ROBOMERGE-SOURCE: CL 5383674 via CL 5383700 via CL 5384346

[CL 5384440 by lina halper in Main branch]
This commit is contained in:
lina halper
2019-03-13 12:37:36 -04:00
parent 7ea6b7d4fa
commit 22e7d02a85
@@ -309,6 +309,12 @@ void FAnimNode_PoseDriver::Evaluate_AnyThread(FPoseContext& Output)
{
FPoseContext CurrentPose(Output);
// clear the value before setting it.
for (int32 PoseIndex = 0; PoseIndex < PoseExtractContext.PoseCurves.Num(); ++PoseIndex)
{
PoseExtractContext.PoseCurves[PoseIndex].Value = 0.f;
}
// Then fill in weight for any driven poses
for (const FRBFOutputWeight& Weight : OutputWeights)
{