Right now when we reimport a staticmesh in python, the given import options are ignored, resulting in the ResetToFbxOnMaterialConflict reimport setting not working.

The options given to the ImportAssetTask should work regardless if we are importing or reimporting.

Steps to Reproduce
  1. Extract the attached [Link Removed] archive.
  2. In the , change the file path (task.filename) of both import tasks so that the path properly point to "./Step1/export_MatA.fbx" and "./Step2/export_MatA.fbx"
  3. In UE4 editor, create a "test" folder under "Content".
  4. In UE4 editor, run the in the python console.
  5. Open the static mesh editor of the imported asset "export_MatA"

Result : The static mesh's material slot is named "lambert1" (name of the slot from the fbx in folder "step1")
Expected: The static mesh's material slot should be named "albert" (name of the slot from the fbx in folder "step2")

Have Comments or More Details?

There's no existing public thread on this issue, so head over to AnswerHub just mention UE-92345 in the post.

Login to Vote

ComponentTools - Import
Affects Versions4.25
Target Fix4.26
Fix Commit14319752
Main Commit14361242
Release Commit14319752
CreatedApr 22, 2020
ResolvedSep 15, 2020
UpdatedNov 18, 2020