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

Removed nullifying on dispose.

Official comment from VM guy is that it isn't needed.
上级 6f001e6a
......@@ -90,7 +90,6 @@
geometry.dispose();
material.dispose();
texture.dispose();
mesh.dispose();
}
......
......@@ -740,12 +740,6 @@ THREE.Geometry.prototype = {
this.dispatchEvent( { type: 'dispose' } );
for ( var property in this ) {
this[ property ] = null;
}
}
};
......
......@@ -349,16 +349,6 @@ THREE.Object3D.prototype = {
return object;
},
dispose: function () {
for ( var property in this ) {
this[ property ] = null;
}
}
};
......
......@@ -120,12 +120,6 @@ THREE.Material.prototype.dispose = function () {
this.dispatchEvent( { type: 'dispose' } );
for ( var property in this ) {
this[ property ] = null;
}
};
THREE.MaterialIdCount = 0;
......@@ -81,12 +81,6 @@ THREE.Texture.prototype = {
this.dispatchEvent( { type: 'dispose' } );
for ( var property in this ) {
this[ property ] = null;
}
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册