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

Add get_concatenated_bone_names() to Skeleton3D for SkeletonModifier3D's enum hints #92925

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

TokageItLab
Copy link
Member

@TokageItLab TokageItLab commented Jun 9, 2024

Follow up #91507.

Cache and expose string for enum hints of bone list. This is already applicable to some of Godot's Nodes and a little improves the performance of the editor.

Copy link
Contributor

@lyuma lyuma left a comment

Choose a reason for hiding this comment

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

Technically I think this is an ok API to expose, since it is very useful. I was worried about calculating the bone name list during runtime when it is not needed, so I would prefer if it is updated only when used.

scene/3d/skeleton_3d.cpp Outdated Show resolved Hide resolved
scene/3d/skeleton_3d.cpp Show resolved Hide resolved
@akien-mga akien-mga merged commit 821338c into godotengine:master Jun 10, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@TokageItLab TokageItLab deleted the concatenated-bone-names branch June 29, 2024 11:45
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.

4 participants