-
-
Notifications
You must be signed in to change notification settings - Fork 21k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot fails to import blend files from Blender 4.2 #92365
Comments
CC @godotengine/import |
Testing with the "blender" daily build channel on steam. Will report back. |
The api for Blender broke compatibility by removing vertex colours in 4.2. There's been significant debate over the merits of the vertex color change in the gltf blender io github issue. |
--- a/20-29 Tools/21 Godot 21/21.01 Godot/modules/gltf/editor/editor_scene_importer_blend.cpp
+++ b/20-29 Tools/21 Godot 21/21.01 Godot/modules/gltf/editor/editor_scene_importer_blend.cpp
@@ -188,11 +188,11 @@ Node *EditorSceneFormatImporterBlend::import_scene(const String &p_path, uint32_
} else {
parameters_map["export_lights"] = false;
}
- if (p_options.has(SNAME("blender/meshes/colors")) && p_options[SNAME("blender/meshes/colors")]) {
- parameters_map["export_colors"] = true;
- } else {
- parameters_map["export_colors"] = false;
- }
+ // if (p_options.has(SNAME("blender/meshes/colors")) && p_options[SNAME("blender/meshes/colors")]) {
+ // parameters_map["export_colors"] = true;
+ // } else {
+ // parameters_map["export_colors"] = false;
+ // }
if (p_options.has(SNAME("blender/nodes/visible"))) {
int32_t visible = p_options["blender/nodes/visible"];
if (visible == BLEND_VISIBLE_VISIBLE_ONLY) { |
I think this PR #83320 is also relevant to this discussion, with some debate over how to manage specular colours from gltf. The problem there is the gltf format actually doesn't always contain all of the information necessary to recreate specular colour accurately under the Godot material system. |
If this is still occuring for you in 4.3rc, see: #94914. In my case .blend/.gltf files still weren't importing because the path to Blender in the Godot editor was configured to an older version of Blender. It seems Godot 4.3 requires Blender 4.1 or later due to this change. |
Tested versions
v4.3.dev6.official [89850d5]
System information
Godot v4.3.dev6 - macOS 14.4.1 - Vulkan (Forward+) - integrated Apple M1 Max - Apple M1 Max (10 Threads)
Issue description
It's a simple scene with a cube and nothing else in it
Steps to reproduce
MRP
Minimal reproduction project (MRP)
MRP_blend_fail.zip
The text was updated successfully, but these errors were encountered: