浏览代码

BufferGeometry.offsets should be a getter

dubejf 10 年之前
父节点
当前提交
d3dce0954b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -49,7 +49,7 @@ THREE.BufferGeometry.prototype = {
 
 
 	},
 	},
 
 
-	offsets: function () {
+	get offsets() {
 
 
 		console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .drawcalls.' );
 		console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .drawcalls.' );
 		return this.drawcalls;
 		return this.drawcalls;