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
There’s a clear memory leak when removing objects with tb.remove(), that should be solved on obj.dispose().
We need to review the dispose of the different objects contained in an Object3D (material, geomertries, textures) and the instances this object is copying in AnimationManager (through .enroll), the different members (.boundingBox, .boundingBoxShadow, .model) and other objects such as .label and .tooltip
The only instance to be kept should be the one in the new tb.objectsCache
The text was updated successfully, but these errors were encountered:
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
#### ✨ Enhancements
- [**#24**](#24) Refactor `obj.deepCopy`, these members must be properties found by name
- [**#54**](#54) vue and threebox,map not defined.
- [**#63**](#63) `CSS2DObject` is not disposing properly.
- [**#66**](#66) `tb.dispose` must now call `tb.clear` and return the async value
- [**#68**](#68) add new methods to remove label & tooltip
- [**#71**](#71) Defer default boundingBox and tooltip creation.
- Update example [15-performance.html](https://github.com/jscastro76/threebox/blob/master/examples/15-performance.html) to avoid dupplicated calls when dragging the count GUI control.
#### 🪲 Bug fixes
- [**#61**](#61) `.userData` not refreshed properly on `obj.duplicate`.
- [**#62**](#62) Memory Leak on `tb.remove()`. Tested
- [**#64**](#64) Cache instance of a loaded model is disposed when the world children is.
- [**#65**](#65) addTooltip and addLabel don't remove previous objects.
- [**#67**](#67) clones have `boundingBoxShadow` line in white.
- [**#69**](#69) After #56 the labels and tooltips are wrongly positioned.
- [**#70**](#70) After #56 object boundingBox has the original cached size.
- [**#72**](#72) After #56 animations are not being cloned.
There’s a clear memory leak when removing objects with
tb.remove()
, that should be solved onobj.dispose()
.We need to review the dispose of the different objects contained in an Object3D (material, geomertries, textures) and the instances this object is copying in
AnimationManager
(through.enroll
), the different members (.boundingBox
,.boundingBoxShadow
,.model
) and other objects such as.label
and.tooltip
The only instance to be kept should be the one in the new
tb.objectsCache
The text was updated successfully, but these errors were encountered: