Navigation
API > API/Runtime > API/Runtime/SkeletalMeshDescription > API/Runtime/SkeletalMeshDescription/FSkeletalMeshOperations
Description
Helper function to follow behavior generated in FSkeletalMeshImportData::GetMeshDescription, just straight on FMeshDescriptions. FSkeletalMeshImportData::GetMeshDescription makes the VertexInstances a single usage semantics. It also re-orders the vertexInstances to be in a straight increasing sequence, which seems to affect the normal and tangent (FSkeletalMeshOperations::Compute..) generation. (Which means, we can't do the restructuring in place.) For that reason we re-create the MeshDescription into the TargetMeshDescription which is expected to be empty.
| Name | FixVertexInstanceStructure |
| Type | function |
| Header File | /Engine/Source/Runtime/SkeletalMeshDescription/Public/SkeletalMeshOperations.h |
| Include Path | #include "SkeletalMeshOperations.h" |
| Source | /Engine/Source/Runtime/SkeletalMeshDescription/Private/SkeletalMeshOperations.cpp |
static void FixVertexInstanceStructure
(
FMeshDescription & SourceMeshDescription,
FMeshDescription & TargetMeshDescription,
const TArray < uint32 > & SourceSmoothingMasks,
TArray < uint32 > & TargetFaceSmoothingMasks
)