Apex Cloth Crash with Latch to Nearest

Hello,

I’m still working in 4.7.6 and am running into a problem with using latch to nearest with apex cloth and ue4.

It seems that ue4 will crash if I paint too many latch vertices. If I lower the amount of latch vertices I paint, it imports fine. Looking at the logs it’s asserting here:

UE4Editor-UnrealEd.dll!ApexClothingUtils::LoadPhysicalMeshFromClothingAsset() (0x000007fecc76f1f4) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\unrealed\private\apexclothingutils.cpp:273]

More specfically I think it’s this line of code:

https://github.com/EpicGames/UnrealEngine/blob/97952cb9d6ba54debdbdb1e706743f291dd8f31c/Engine/Source/Editor/UnrealEd/Private/ApexClothingUtils.cpp#L271

The mesh simulates fine in 3ds max.

If this is just a bug that there’s nothing I can do about, just let me know and I’ll give up. :slight_smile:

Thanks!