Skip to content

[3.x] FTI - Add multimesh_instances_reset_physics_interpolation() #108120

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

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

lawnjelly
Copy link
Member

Convenience function to allow resetting all instances on a MultiMesh at once, rather than calling individually per instance.

Backport of #108114

Notes

  • I had been meaning to add this function for a while, there had been several requests to make things easier for bulk resetting.
  • The naming is slightly confusing, as we have MultiMeshInstance as a scene node, but the MultiMesh resource contains instances themselves (which are reset here), but that naming seems to have been set in stone historically and can't easily be changed now.
  • An alternative might be to call the functions reset_all_instances... rather than reset_instances..., given that the current is very similar to reset_instance... used already, am happy to change if this is preferred.

Copy link
Member

@rburing rburing left a comment

Choose a reason for hiding this comment

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

Code looks good and API is useful.

@lawnjelly lawnjelly merged commit e4449b8 into godotengine:3.x Jul 2, 2025
14 checks passed
@lawnjelly
Copy link
Member Author

Thanks!

@lawnjelly lawnjelly deleted the fti_multimesh_reset_all3 branch July 2, 2025 07:20
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.

2 participants