Skip to content

Conversation

@tychedelia
Copy link
Member

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.
jf908 pushed a commit to jf908/bevy that referenced this pull request May 12, 2025
…evyengine#18846)

# Objective

Fixes bevyengine#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