phetsims / tandem

Simulation-side code for PhET-iO
MIT License
0 stars 5 forks source link

Allow objects to be deleted and recreated in same frame #265

Open zepumph opened 2 years ago

zepumph commented 2 years ago

There is an assertion that checks to make sure descendants are deleted on next frame, but in Buoyancy, it is buggy because we delete a PhetioCapsule element and re-create it in the same frame. We will comment out these lines until we can be more robust about this.

https://github.com/phetsims/tandem/blob/c6a65b64060582984db50eb773191b8de3d94283/js/PhetioObject.ts#L647-L649