Skip to content
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

GLTFDocument loader returns Freed Object at runtime #98038

Closed
huwpascoe opened this issue Oct 9, 2024 · 1 comment · Fixed by #98048
Closed

GLTFDocument loader returns Freed Object at runtime #98038

huwpascoe opened this issue Oct 9, 2024 · 1 comment · Fixed by #98048

Comments

@huwpascoe
Copy link
Contributor

huwpascoe commented Oct 9, 2024

Tested versions

4.3

System information

Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 960 (NVIDIA; 32.0.15.6081) - Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz (4 Threads)

Issue description

GLTFDocument is unable to load scenes at runtime if the gltf file contains "GODOT_single_root".

The resulting node is<Freed Object>.

Steps to reproduce

Save a gltf file with root_node_mode set as default (ROOT_NODE_MODE_SINGLE_ROOT), then load it and call generate_scene.

Minimal reproduction project (MRP)

gltfdocsave.zip
image
image

@aaronfranke
Copy link
Member

Thank you for reporting this bug. This is a regression introduced by me in Godot 4.2 in PR #81851. I've fixed it in PR #98048 (master), PR #98049 (4.3), and PR #98051 (4.2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants