Describe the bug
Calling Two.remove on an object that has been created and added by Two.makeX does not remove the object, even when that object is later fetched by Two.scene.getById.
To Reproduce
https://jsfiddle.net/2n4j0to9/ -- Click on bottom right demo area to trigger object removal.
Expected behavior
Calling Two.remove on an object that has been created and added by Two.makeX removes the object, both when calling Two.remove on the object and when the object is fetched by Two.scene.getById.
Environment (please select one):
Desktop (please complete the following information):
Thank you for this! I've updated the dev branch to reflect changes / fixes to this issue. The problem is that when you change an id of a child element after it's been added to a group, the group's internal map doesn't update as well. It now does.
Most helpful comment
Thank you for this! I've updated the dev branch to reflect changes / fixes to this issue. The problem is that when you change an
idof a child element after it's been added to a group, the group's internal map doesn't update as well. It now does.