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

try_insert NoAutomaticBatching #12396

Merged
merged 1 commit into from Mar 10, 2024

Conversation

robtfm
Copy link
Contributor

@robtfm robtfm commented Mar 10, 2024

Objective

fix occasional crash from commands.insert when quickly spawning and despawning skinned/morphed meshes

Solution

use try_insert instead of insert. if the entity is deleted we don't mind failing to add the NoAutomaticBatching marker.

@robtfm robtfm added A-Rendering Drawing game state to the screen C-Crash A sudden unexpected crash labels Mar 10, 2024
@james7132 james7132 added this pull request to the merge queue Mar 10, 2024
@alice-i-cecile alice-i-cecile 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 Mar 10, 2024
@alice-i-cecile alice-i-cecile added this to the 0.13.1 milestone Mar 10, 2024
Merged via the queue into bevyengine:main with commit cca4ab3 Mar 10, 2024
29 checks passed
mockersf pushed a commit that referenced this pull request Mar 10, 2024
# Objective

fix occasional crash from commands.insert when quickly spawning and
despawning skinned/morphed meshes
 
## Solution

use `try_insert` instead of `insert`. if the entity is deleted we don't
mind failing to add the `NoAutomaticBatching` marker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Crash A sudden unexpected crash 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.

None yet

3 participants