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

Overwrite gizmo group in insert_gizmo_group #11860

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

Jondolf
Copy link
Contributor

@Jondolf Jondolf commented Feb 14, 2024

Objective

I tried using insert_gizmo_group to configure my physics gizmos in a bevy_xpbd example, but was surprised to see that nothing happened. I found out that the method does not overwrite gizmo groups that have already been initialized (with init_gizmo_group). This is unexpected, since methods like insert_resource do overwrite.

Solution

Insert the configuration even if it has already been initialized.

@Jondolf Jondolf added C-Bug An unexpected or incorrect behavior A-Gizmos Visual editor and debug gizmos labels Feb 14, 2024
Copy link
Contributor

@pablo-lua pablo-lua left a comment

Choose a reason for hiding this comment

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

Simple changes, but great. it slipped in that PR 🤦

@alice-i-cecile alice-i-cecile added this to the 0.13 milestone Feb 14, 2024
@tim-blackbird tim-blackbird added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Feb 14, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Feb 14, 2024
Merged via the queue into bevyengine:main with commit 8cf3447 Feb 14, 2024
27 checks passed
@Jondolf Jondolf deleted the overwrite-gizmo-group branch February 14, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Gizmos Visual editor and debug gizmos C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants