I load a model from an obj file using in addition the mtl file. How do I properly dispose off or deallocate all the geometry/materials/textures from the returned Object3D in r55
I use this:
function removeReferences(removeme){ try{ removeme.traverse(function(ob){ try{ renderer.deallocateObject(ob); }catch(e){} try{ ob.geometry.deallocate(); }catch(e){} try{ ob.material.deallocate(); }catch(e){} try{ ob.deallocate() }catch(e){} }); }catch(e){} }