BlenderTools: Send to Unreal is broken in Blender 4.0 beta, FBX is corrupted/Missing data

Hi. Upon using Push Assets in Blender 4.0 beta, the assets fail to be imported by Unreal, but in Blender 3.6 it works fine. An export using Blender’s built in FBX exporter in 4.0 does import. Just not ones from Push Assets.

Snippet from Unreal output log on import

LogFactory: FactoryCreateFile: StaticMesh with FbxFactory (0 0 C:/Users/funky/AppData/Local/Temp/blender/send2ue/data/StaticMesh/Blender40ExportTest.fbx)
LogFbx: Loading FBX Scene from C:/Users/funky/AppData/Local/Temp/blender/send2ue/data/StaticMesh/Blender40ExportTest.fbx
FBXImport: Warning: FBX Scene Loading Failed : 'File is corrupted Blender40ExportTest.fbx' 
FBXImport: Warning: Can't detect import type. No mesh is found or animation track. 
LogAssetTools: Warning: Failed to import 'C:/Users/funky/AppData/Local/Temp/blender/send2ue/data/StaticMesh/Blender40ExportTest.fbx'. Failed to create asset '/Game/UNSORTED/Blender40ExportTest'.

Tested with Blender 4.0.0 Beta, and Send to Unreal 2.4.2

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Reactions: 2
  • Comments: 45 (3 by maintainers)

Most upvoted comments

Here’s a proper fix until addon is updated:

the fbx.py file mentioned above is what we need to change

go to line 35, add elem_data_single_char to the list so it looks like

from io_scene_fbx.fbx_utils import (
    FBX_MODELS_VERSION,
    FBX_POSE_BIND_VERSION,
    FBX_DEFORMER_SKIN_VERSION,
    FBX_DEFORMER_CLUSTER_VERSION,
    BLENDER_OBJECT_TYPES_MESHLIKE,
    units_convertor_iter,
    matrix4_to_array,
    get_fbx_uuid_from_key,
    get_blenderID_name,
    get_blender_bindpose_key,
    get_blender_anim_stack_key,
    get_blender_anim_layer_key,
    elem_empty,
    elem_data_single_bool,
    elem_data_single_int32,
    elem_data_single_int64,
    elem_data_single_float64,
    elem_data_single_string,
    elem_data_single_int32_array,
    elem_data_single_float64_array,
    elem_properties,
    elem_props_template_init,
    elem_props_template_set,
    elem_props_template_finalize,
    fbx_name_class,
    elem_data_single_char
)

Search for b"Shading" and replace elem_data_single_bool(model, b"Shading", True) with elem_data_single_char(model, b"Shading", b"\x01")

That’s all!

Fix worked perfectly. Thank you!

Attaching this because I thought someone would have posted a fixed version in comments, but I didn’t see one. Enjoy

send2ue_2.4.3_editedwithfix.zip

Here’s a proper fix until addon is updated:

the fbx.py file mentioned above is what we need to change

go to line 35, add elem_data_single_char to the list so it looks like

from io_scene_fbx.fbx_utils import (
    FBX_MODELS_VERSION,
    FBX_POSE_BIND_VERSION,
    FBX_DEFORMER_SKIN_VERSION,
    FBX_DEFORMER_CLUSTER_VERSION,
    BLENDER_OBJECT_TYPES_MESHLIKE,
    units_convertor_iter,
    matrix4_to_array,
    get_fbx_uuid_from_key,
    get_blenderID_name,
    get_blender_bindpose_key,
    get_blender_anim_stack_key,
    get_blender_anim_layer_key,
    elem_empty,
    elem_data_single_bool,
    elem_data_single_int32,
    elem_data_single_int64,
    elem_data_single_float64,
    elem_data_single_string,
    elem_data_single_int32_array,
    elem_data_single_float64_array,
    elem_properties,
    elem_props_template_init,
    elem_props_template_set,
    elem_props_template_finalize,
    fbx_name_class,
    elem_data_single_char
)

Search for b"Shading" and replace elem_data_single_bool(model, b"Shading", True) with elem_data_single_char(model, b"Shading", b"\x01")

That’s all!

Thanks for the instructions. I just tried it and it worked for me in Blender 4.1 Alpha.

Thanks for the update! This does fix the issue for me.

FYI: For anyone interested - not all steps may be required, but I was just being cautious.

  • Unzipped addon folder.
  • Found file and edited.
  • Zipped up folder (make sure not to have another folder level deep in the zip - zip file structure should match the original).
  • Removed the previous install of the addon from blender.
  • Closed Blender.
  • Opened Blender Installed updated zip.
  • Closed Blender and re-opened.
after 2 before 2 after Before

same here, fixed it by exporting the 4.0 project as an fbx and importing it into a 3.5 beta version.

I think it is just the plugin that doesn’t work. Exporting a fbx manually and importing it into unreal works

Total Novice here gang. I edited the fbx.py mentioned above, but still have the same exact problem when pushing to unreal Using Unreal 5.2.1 & Blender 4.0.2

Capture5

Am I missing something? Yes the comma is there fbx2

fbx3

I had to close and reopen blender. Maybe that helps you too.

Total Novice here gang. I edited the fbx.py mentioned above, but still have the same exact problem when pushing to unreal Using Unreal 5.2.1 & Blender 4.0.2

Capture5

Am I missing something? Yes the comma is there fbx2

fbx3

same here!

Total Novice here gang. I edited the fbx.py mentioned above, but still have the same exact problem when pushing to unreal Using Unreal 5.2.1 & Blender 4.0.2

Capture5

Am I missing something? Yes the comma is there fbx2

fbx3

Glad to know it isn’t my mesh. Almost had a heart attack here. Same to me.

Screenshot 2023-11-24 095319 same here, blender 4.0.1