I’ve made a model in Blender, exported as a .fbx. It imports fine (okay, a version warning, but generally fine). Weirdly, though, re-importing doesn’t change the model at all. If I delete the asset and recreate it, it picks up whatever changes I’ve made, but it silently fails every time I choose “re-import”.
Any idea how to troubleshoot this?
Edit: It actually says “successfully reimported”, but now that I’m looking at the output log, it turns out it’s generating errors -
LogFbx:Error: Call to KFbxImporter::Initialize() failed.
LogFbx:Warning: Error returned: Corrupted or invalid file.
LogEditorFactories:Warning: – import failed
These errors do not happen when I create the asset from scratch.
Edit, part 2:
Playing around with the engine source code shows me that this is, indeed, a problem with UE4’s path handling. When I import it the first time it properly reads c:/work/ugame/art/crodharp.fbx; future re-imports attempt to read c:/…/…/work/ugame/art/crodharp.fbx which is not the right path and results in errors. Hardcoding the engine so that every import reads c:/work/ugame/art/crodharp.fbx makes re-import work again (though obviously this isn’t a suitable long-term solution).
I’m going to keep trying to figure out where the bad path comes from, but obviously something broken is happening with regards to UE4’s path handling code.
When you click reimport does the importer show a notification that the mesh was reimported successfully? Do you see anything in the output log? (Window->Output Log)
No guarantee this file will stay up long-term, and please excuse my terrible model skills and unfinished model, but - http://cams.pavlovian.net/crodharp.zip includes both original .blend and the exported .fbx.
I’ve recreated the file multiple times. I don’t think it’s becoming corrupt. Are you opening the model, going to Asset, and choosing Reimport?
I’m sort of wondering if it’s related to having the project located in a nonstandard place - I have my project in c:/work/ugame, and source file path it keeps trying to use is …/…/…/…/…/…/work/ugame/art/crodharp.fbx - for some reason it thinks the project is rooted elsewhere.
Now that I’ve tracked this down further, I’m about 99% sure it’s a bug, probably several bugs. Creating a new post in the bug reports section without all the clutter of us trying to figure out what’s going on.
Seem like a bug. The only way to solve the re-import problem for me now is to click “Import” button and choose a source file with the same name and click “Yes” in “Overwrite” pop-up dialog.