Skip to content

Swap order of eviction/extraction when extracting for specialization #18846

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
Apr 15, 2025

Conversation

tychedelia
Copy link
Contributor

Objective

Fixes #18843

Solution

We need to account for the material being added and removed in the course of the same frame. We evict the caches first because the entity will be re-added if it was marked as needing specialization, which avoids another check on removed components to see if it was "really" despawned.

@tychedelia tychedelia added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Apr 15, 2025
@tychedelia tychedelia added this to the 0.16 milestone Apr 15, 2025
@mockersf mockersf added this pull request to the merge queue Apr 15, 2025
Merged via the queue into bevyengine:main with commit 18e1bf1 Apr 15, 2025
39 checks passed
mockersf pushed a commit that referenced this pull request Apr 15, 2025
…18846)

# Objective

Fixes #18843 

## Solution

We need to account for the material being added and removed in the
course of the same frame. We evict the caches first because the entity
will be re-added if it was marked as needing specialization, which
avoids another check on removed components to see if it was "really"
despawned.
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-Bug An unexpected or incorrect behavior S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Removing MeshMaterial3d from entity panics.
2 participants