You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When iterating through a container to remove each child individually using removeChild, re-adding the same object later sometimes results in the object not rendering.
Expected Behavior
When removing a child and adding it later it should always be rendered.
Current Behavior
When iterating through a container to remove each child individually using removeChild, re-adding the same object later sometimes results in the object not rendering.
Expected Behavior
When removing a child and adding it later it should always be rendered.
Steps to Reproduce
The issue can be reproduce here.
https://pixiplayground.com/#/edit/xJo273qZP7r30Rm9Uoseg
//Comment: Removing children using removeChild causes issue container.children.forEach((bunny) => { container.removeChild(bunny); });
//Comment: Using works fine container.removeChildren();
Environment
pixi.js version: v8.0.0-rc.7
Browser & Version: Firefox 122.0, Edge 122.0
OS & Version: Debian and Windows (shouldn't matter)
Running Example: https://pixiplayground.com/#/edit/xJo273qZP7r30Rm9Uoseg
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: