godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.14k stars 20.21k forks source link

GLTF Animations get imported incorrectly, Reimport causes crash! #96710

Open prominentdetail opened 1 week ago

prominentdetail commented 1 week ago

Tested versions

4.3.stable

System information

windows 10

Issue description

GLTF files with animations don't get imported correctly.

Here is an example of an animated gltf and how it should look: animgood01

And here is how it looks in Godot. Notice the legs aren't aligned to the body (use the importer window to preview it): animbad01

Also, here is how it looks in 4.2.2rc, so I know it had been working fine in the past: animgood03

Edit: The problem appears to be related to the importer window. It displays incorrectly there, but fine when added to scene. However, reimporting the model causes Godot to crash!

Steps to reproduce

Here is a zip file of the gltf model. Simply add it to a Godot project and check their animations, or use the provided MRP below. characterVid02_14.zip

Minimal reproduction project (MRP)

test-4.3.zip

fire commented 1 week ago

Godot Engine 4.3 stable gltf import matches three.js viewer https://gltf-viewer.donmccurdy.com/.

https://github.com/user-attachments/assets/40eb5bde-a850-4e26-aa90-6a6e598ffc1f

https://github.com/user-attachments/assets/62a46e6d-0a04-4ee7-b8ed-e504aea30a36

fire commented 1 week ago

Switching to humanoid skeleton unexpectedly crashes.

Edited:

Clicking on the skeleton and reimporting crashes? I thought this was fixed.

prominentdetail commented 1 week ago

Hm, I didn't check adding it to the scene. I only saw that it looks incorrect in the importer window: image

I added it to scene and it animated correctly. However, clicking the Reimport button in the Importer window crashes Godot!