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

BufferAttribute: Moved deprecated code.

上级 f46ead68
......@@ -310,6 +310,17 @@ Object.defineProperties( THREE.Light.prototype, {
//
Object.defineProperties( THREE.BufferAttribute.prototype, {
length: {
get: function () {
console.warn( 'THREE.BufferAttribute: .length has been deprecated. Please use .count.' );
return this.array.length;
}
}
} );
//
Object.defineProperties( THREE.Material.prototype, {
wrapAround: {
get: function () {
......
......@@ -20,13 +20,6 @@ THREE.BufferAttribute.prototype = {
constructor: THREE.BufferAttribute,
get length() {
console.warn( 'THREE.BufferAttribute: .length has been deprecated. Please use .count.' );
return this.array.length;
},
get count() {
return this.array.length / this.itemSize;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册