浏览代码

BufferAttribute/InterleaveBufferAttribute: Simpler warnings.

Mr.doob 10 年之前
父节点
当前提交
6f9dc56b7b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/core/BufferAttribute.js
  2. 1 1
      src/core/InterleavedBufferAttribute.js

+ 1 - 1
src/core/BufferAttribute.js

@@ -17,7 +17,7 @@ THREE.BufferAttribute.prototype = {
 
 	get length () {
 
-		THREE.warn( 'THREE.BufferAttribute.length has been removed. Use THREE.BufferAttribute.count instead.' );
+		console.warn( 'THREE.BufferAttribute: .length has been renamed to .count.' );
 		return this.count;
 
 	},

+ 1 - 1
src/core/InterleavedBufferAttribute.js

@@ -17,7 +17,7 @@ THREE.InterleavedBufferAttribute.prototype = {
 
 	get length() {
 
-		THREE.warn( 'THREE.InterleavedBufferAttribute.length has been removed. Use THREE.InterleavedBufferAttribute.count instead.' );
+		console.warn( 'THREE.InterleavedBufferAttribute: .length has been renamed to .count.' );
 		return this.count;
 
 	},