Skip to content

Conversation

@Eideren
Copy link
Collaborator

@Eideren Eideren commented Oct 29, 2025

PR Details

The following

public void SimulationUpdate(BepuSimulation simulation, float simTimeStep)
{
    Entity.Scene = null;
}

threw an exception as the caller contains a reference to this component in the collection it foreaches over.
This PR ensures that the caller handles component removal while running those callbacks properly.

Related Issue

None.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

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.

1 participant