Skip to content

Return at invalid skeleton in ChainIK3D before updating mutable info#114062

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
CSLRDoesntGameDev:master
Dec 21, 2025
Merged

Return at invalid skeleton in ChainIK3D before updating mutable info#114062
akien-mga merged 1 commit into
godotengine:masterfrom
CSLRDoesntGameDev:master

Conversation

@CSLRDoesntGameDev

@CSLRDoesntGameDev CSLRDoesntGameDev commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

pretty self explanatory i hope.. in my testing it fixes the segfault reported in #114059 when moving a ChainIK3D derived node from its parent skeleton in the editor's scene tree

edit:

been trying to find an alternative way of doing this and couldn't really find one that was a solid fix, it seems like for some reason the function that caused the segfault gets called a few times once its gone from the skeleton's hierarchy.

either way it's probably a good idea to return when the skeleton is invalid because right after the skeleton check it's getting referenced

@CSLRDoesntGameDev CSLRDoesntGameDev requested a review from a team as a code owner December 16, 2025 01:08
@CSLRDoesntGameDev CSLRDoesntGameDev changed the title Return with invalid skeleton in ChainIK3D before updating mutable info Return at invalid skeleton in ChainIK3D before updating mutable info Dec 16, 2025
@fire fire requested a review from a team December 16, 2025 04:00
@AThousandShips AThousandShips added this to the 4.6 milestone Dec 16, 2025
Comment thread scene/3d/chain_ik_3d.cpp

@TokageItLab TokageItLab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to rebase to follow our PR workflow (this PR must contain only 1 commit).

@CSLRDoesntGameDev

CSLRDoesntGameDev commented Dec 20, 2025

Copy link
Copy Markdown
Contributor Author

Needs to rebase to follow our PR workflow (this PR must contain only 1 commit).

the commit part is done :)

@TokageItLab

TokageItLab commented Dec 20, 2025

Copy link
Copy Markdown
Member

Ideally, we recommend that the commit comment shouldn’t contain any PR number, and based on the what you done. For example, “Make update_mutable_info return earlier if skeleton is null”.

@fire

fire commented Dec 20, 2025

Copy link
Copy Markdown
Member

The current title of the pull request is a good example of a commit message.

Return at invalid skeleton in ChainIK3D before updating mutable info

@CSLRDoesntGameDev

CSLRDoesntGameDev commented Dec 20, 2025

Copy link
Copy Markdown
Contributor Author

assuming nothing broke in the amend it should be good now

(not a huge fan of needing a force push to amend)

@akien-mga akien-mga merged commit 97f584f into godotengine:master Dec 21, 2025
20 checks passed
@akien-mga

Copy link
Copy Markdown
Member

Thanks! And congrats for your first merged Godot contribution 🎉

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.

Moving a IK Modifier Node away from parent Skeleton while active crashes the Editor

5 participants