Workaround for CurvePoseIndex out of bounds crash

[CODEREVIEW] Lina.Halper, Laurent.Delayen, Aaron.Cox
#rnx

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: braeden.shosa
#ROBOMERGE-SOURCE: CL 7014082 via CL 7016740 via CL 7016747 via CL 7016816 via CL 7020855 via CL 7020952
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v367-6836689)

[CL 7093652 by braeden shosa in Dev-Build branch]
This commit is contained in:
braeden shosa
2019-06-19 11:10:21 -04:00
parent 52afef7a05
commit faa2844b15

View File

@@ -246,7 +246,7 @@ void FAnimNode_LayeredBoneBlend::Evaluate_AnyThread(FPoseContext& Output)
for (int32 UIDIndex = 0; UIDIndex < CurveUIDFinder->Num(); ++UIDIndex)
{
int32 CurvePoseIndex = Output.Curve.GetArrayIndexByUID(UIDIndex);
if (CurvePoseIndex != INDEX_NONE)
if (CurvePoseSourceIndices.IsValidIndex(CurvePoseIndex))
{
int32 SourceIndex = CurvePoseSourceIndices[CurvePoseIndex];
if (SourceIndex != DEFAULT_SOURCEINDEX)