X Tutup
Skip to content

Fix setter for readonly bone name in the joint array and add null check in IKModifier3D#114240

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
TokageItLab:fix-handring-ik
Jan 1, 2026
Merged

Fix setter for readonly bone name in the joint array and add null check in IKModifier3D#114240
akien-mga merged 1 commit intogodotengine:masterfrom
TokageItLab:fix-handring-ik

Conversation

@TokageItLab
Copy link
Member

@TokageItLab TokageItLab commented Dec 20, 2025

This is not a fundamental fix, but I am committing it because I determined there are no side effects.

These properties should not be serialized in the first place. Although I haven't marked them as STORAGE in Usage, they are somehow being serialized to tscn. Therefore, I believe this is fundamentally a serialization bug.

However, these properties are already read-only and only allow access from within the C++ core. So, removing the function calls from the setters resolves the issue.

Additionally, make the joint array API for LimitAngularModifier consistent with other SkeletonModifiers. The indexing was broken, but this fixes it.

Before:

imageimage

After fix:

image

FYI, since joint array elements are dynamically generated, changing their paths will not cause compatibility breaks.

@fire
Copy link
Member

fire commented Dec 20, 2025

You can also keep the setter but set no storage flag

@TokageItLab
Copy link
Member Author

TokageItLab commented Dec 21, 2025

But those members are read-only so no point to keep them, although I'm keeping the getter because it helps scripts find the currently processed joints.

@fire
Copy link
Member

fire commented Dec 22, 2025

I think we should approve this, but I'm not sure about read only properties. Anyone else have an alternative.

@akien-mga akien-mga merged commit 588c657 into godotengine:master Jan 1, 2026
20 checks passed
@github-project-automation github-project-automation bot moved this from Ready for review to Done in Animation Team Issue Triage Jan 1, 2026
@akien-mga
Copy link
Member

Thanks!

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Using SpringBoneSimulator3D on Skeleton3D causing errors.

3 participants

X Tutup