Sequencer: Control Rig Baking cherrypick from Cine branch, changed a check to an if statement whlen the spaces mismatch since this can happen with the mesh/level getting streamed out while still recording.

#jira na
#rb na
#trivial
#preflight 61f8247e68795b2f457ce679

[CL 18798274 by Mike Zyracki in 5.0 branch]
This commit is contained in:
Mike Zyracki
2022-01-31 16:52:16 -05:00
parent 4d81327748
commit 3875905a1a

View File

@@ -646,8 +646,12 @@ void FAnimationRecorder::UpdateRecord(USkeletalMeshComponent* Component, float D
{
const FBlendedHeapCurve& AnimCurves = Component->GetAnimationCurves();
check(SpaceBases.Num() == PreviousSpacesBases.Num());
if (SpaceBases.Num() != PreviousSpacesBases.Num())
{
UE_LOG(LogAnimation, Log, TEXT("Current Num of Spaces %d don't match with the previous number %d so we are stopping recording"), SpaceBases.Num(), PreviousSpacesBases.Num());
StopRecord(true);
return;
}
TArray<FTransform> BlendedSpaceBases;
BlendedSpaceBases.AddZeroed(SpaceBases.Num());