mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[ue4] Closes #2032, set bGenerateMirroredCollision when SpineSkeletonRenderer has negative scale.
This commit is contained in:
parent
614b2749f7
commit
e6688e2514
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user