Reimport settings for FBX and USD not getting stored

I beleive these are 2 independant bugs but they are highly related and we hit them at the same time (migrating 5.7 -> 5.8)

Bug 1: FBX assets originally imported in 5.7 lose their “Combine Static Meshes” import setting when reimported in 5.8. In 5.8 “Combine Static Meshes” was changed from a bool to 3-way enum, and the old bool choice from 5.7 is not moved into the 5.8 enum. The result for end users is that reimport fails in 5.8. I beleive the issue would also affect `bImportCollision_DEPRECATED`

Bug2: Legacy USD importer doesn’t remember import options after editor restart. Issue affects both 5.7 and 5.8. The user’s choice for “Kinds to Collapse” is stored as a editor preference rather than per asset import data (which doesn’t seem to be persistently stored into the asset)

[Attachment Removed]

Steps to Reproduce

See provided 3 very simple files in ticket:

  • MyCubes.fbx
  • MyCubes.usd
  • MyCones.usd

Repro Bug 1:

  1. In 5.7 fbx interchange importer
  2. Import “MyCubes.fbx” with `Combine Static Meshes` set to True
  3. Open the same project in 5.8
  4. Open the “Reimport with Dialog” options in 5.8
  5. Observe that the `Combine Static Meshes` is set to “Do Not Combine Static Meshes”
  6. Expected that it would be set to “Combine All”

Repro Bug 2:

  • With legacy usd `Interchange.FeatureFlags.Import.USD 0` import MyCubes.usd
  • Set Kinds to Collapse to `Subcomponent`
  • Import a different usd file (eg MyCones.usd) with kinds to collapse = `Component`
  • Check the reimport options on both imports (cubes and cones) and observe the first one is `Subcomponent` and the 2nd one is `Component` (as expected)
  • Restart unreal
  • Check the reimport options on the first import
  • Observe it has changed from `Subcomponent` to `Component`
    [Attachment Removed]

Hi Luke,

Thanks for reporting those issues and sharing your interim patch.

I opened two bugs to track each issues: UE-403623 and UE-403624. Note that it may take some time before the links become operational.

Regards,

Jean-Luc

[Attachment Removed]

Linking in an additional 5.7 -> 5.8 fbx reimport bug that is highly related to this one: [Content removed]

[Attachment Removed]

Linking in an additional 5.7 -> 5.8 fbx reimport bug that is highly related to this one: [Content removed]

[Attachment Removed]

Attaching our interim patch for reference

[Attachment Removed]