I can't import .blend files in Godot

Godot Version - 4.2.2

Blender Version - 4.2

I can’t import .blend files in godot, but i can import .glb and .gltf files.

I have set the import path to where my blender is ( C:\Program Files\Blender Foundation\Blender 4.2 ) where my blender-launcher.exe is.

i have also enabled import from blender. Also when I import using drag and drop I get the error - modules/gltf/gltf_document.cpp:7673 - Condition “err != OK” is true. Returning: ERR_FILE_CANT_OPEN

Error importing ‘res://Blender_Meshes/cube.blend’.

but all other formats are working correctly. i saw someone asking this same question and someone said to use .gltf but I was watching a tutorial and .blend is much better to follow along.

You should be able to use blend files. I think I recall someone posting a similar issue and it was a bug triggered by how they set the blender path. Perhaps they had set it via the pop-up the first time vs through the settings? IDK, but search the forums for something like that.

what do you mean by pop-up?

I have set the path both by clicking the folder icon and navigating through the drive and by copying and pasting the path directly, if that was what you meant by pop-up vs through the settings.

IIRC they didnt have it set, then a popup asked them to set it.

However, I could be remembering all the details wrong. See if you can do a quick search of the forum and find it.

Also, did you search for issues on the godot github page?

i did find the same problem being reproduced in one of the issues in the official godot github page.

it is .blend file import from Blender 4.2 files not working. · Issue #94478 · godotengine/godot · GitHub
and seems like there is a fix for it by changing vertex_colors to export_vertex_colors but I don’t know how to implement this fix to my blender or godot.

Can you take a look at it for me?

1 Like

It’s happening due to a bug in the latest blender 4.2lts. I installed blender 4.1.1 and now the .blend files are being imported without any problems/ errors.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.