提交 a3ac716e 编写于 作者: M Mr.doob

Revert "WebGLProperties: Renamed .delete to .remove. See #7298."

This reverts commit 46d0293c.
上级 e9e2beeb
......@@ -551,7 +551,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
// remove all webgl properties
properties.remove( texture );
properties.delete( texture );
}
......@@ -580,8 +580,8 @@ THREE.WebGLRenderer = function ( parameters ) {
}
properties.remove( renderTarget.texture );
properties.remove( renderTarget );
properties.delete( renderTarget.texture );
properties.delete( renderTarget );
}
......@@ -589,7 +589,7 @@ THREE.WebGLRenderer = function ( parameters ) {
releaseMaterialProgramReference( material );
properties.remove( material );
properties.delete( material );
}
......
......@@ -101,11 +101,11 @@ THREE.WebGLGeometries = function ( gl, properties, info ) {
if ( attribute instanceof THREE.InterleavedBufferAttribute ) {
properties.remove( attribute.data );
properties.delete( attribute.data );
} else {
properties.remove( attribute );
properties.delete( attribute );
}
......
......@@ -22,7 +22,7 @@ THREE.WebGLProperties = function () {
};
this.remove = function ( object ) {
this.delete = function ( object ) {
delete properties[ object.uuid ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册