[ue4] Closes #2032, set bGenerateMirroredCollision when SpineSkeletonRenderer has negative scale.

This commit is contained in:
badlogic 2022-05-02 18:30:43 +02:00
parent 614b2749f7
commit e6688e2514

View File

@ -165,6 +165,7 @@ void USpineSkeletonRendererComponent::Flush(int &Idx, TArray<FVector> &Vertices,
}
}
GetBodySetup()->bGenerateMirroredCollision = GetComponentScale().X < 0 || GetComponentScale().Y < 0 || GetComponentScale().Z < 0;
CreateMeshSection(Idx, Vertices, Indices, Normals, Uvs, Colors, TArray<FProcMeshTangent>(), bShouldCreateCollision);
Vertices.SetNum(0);