I set the Forced LOD Model on the mesh component > 1, then tried to export, this is what causes the crash. Here is my suggested fix, we just don’t use Git or I’d do a PR:
In the else() branch of FFbxExporter::ExportStaticMesh(), replace the LODIndex definition with the following to clamp it to a valid value:
const int32 LODIndex = (StaticMeshComponent->ForcedLodModel > 0
? FMath::Min(StaticMesh->GetNumLODs(), StaticMeshComponent->ForcedLodModel) - 1
: /* auto-select*/ 0);
This crash was encountered when trying to export an entire level, and sometimes artists will mass-set the Forced LOD Model on many components to cause this.
Thanks,
-Nick