Closed jasonbcox closed 11 years ago
There appears to be a memory cleanup bug as well. Although it may not be related to these changes, I'll fix that problem before closing this ticket. I want a completely stable build before merging this branch.
Fix finished by a9a4e75
For Scene: Add two key-value maps with Mesh* keys and a set of Object* values (for opaque and transparent objects) so that each Scene keeps track of its own objects-mesh relationships. For Mesh and Transform: Record the number of scene users. Only delete if the count reaches 0. For Transform: only delete children in the destructor if that number reaches 0.