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

Fix crash when reimporting with Skeleton3D selected. #83964

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

SaracenOne
Copy link
Member

Closes #74059

@SaracenOne SaracenOne added this to the 4.2 milestone Oct 25, 2023
@SaracenOne SaracenOne requested a review from a team as a code owner October 25, 2023 19:54
@akien-mga akien-mga changed the title Fixes crash when reimporting with Skeleton3D selected. Fix crash when reimporting with Skeleton3D selected. Oct 25, 2023
@fire fire requested a review from a team October 25, 2023 20:20
@fire
Copy link
Member

fire commented Oct 25, 2023

tl;dr Get parent returns a null sometimes. An obvious uncommon case would be when you've got a mesh instance 3d root and you have a children skeleton. The get_parent() of the mesh instance 3d root is null.

@akien-mga akien-mga merged commit 53a894e into godotengine:master Oct 26, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@fire fire deleted the skeleton_reimport_crashfix branch October 26, 2023 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Godot 4 crashes when updating a GLTF file's skeleton
3 participants