From e6688e251490ed18ede7f2a86293c172dbeab70c Mon Sep 17 00:00:00 2001 From: badlogic Date: Mon, 2 May 2022 18:30:43 +0200 Subject: [PATCH] [ue4] Closes #2032, set bGenerateMirroredCollision when SpineSkeletonRenderer has negative scale. --- .../SpinePlugin/Private/SpineSkeletonRendererComponent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp index 17843b9f0..6fd691122 100644 --- a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp +++ b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp @@ -165,6 +165,7 @@ void USpineSkeletonRendererComponent::Flush(int &Idx, TArray &Vertices, } } + GetBodySetup()->bGenerateMirroredCollision = GetComponentScale().X < 0 || GetComponentScale().Y < 0 || GetComponentScale().Z < 0; CreateMeshSection(Idx, Vertices, Indices, Normals, Uvs, Colors, TArray(), bShouldCreateCollision); Vertices.SetNum(0);