提交 6b3eaa0d 编写于 作者: J Jason Davies

Add deallocation to BufferGeometry.

上级 5bc4598b
......@@ -6014,6 +6014,13 @@ THREE.BufferGeometry.prototype = {
this.hasTangents = true;
this.tangentsNeedUpdate = true;
},
deallocate: function () {
var index = THREE.GeometryLibrary.indexOf( this );
if ( index !== -1 ) THREE.GeometryLibrary.splice( index, 1 );
}
};
......
此差异已折叠。
......@@ -476,6 +476,13 @@ THREE.BufferGeometry.prototype = {
this.hasTangents = true;
this.tangentsNeedUpdate = true;
},
deallocate: function () {
var index = THREE.GeometryLibrary.indexOf( this );
if ( index !== -1 ) THREE.GeometryLibrary.splice( index, 1 );
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册