소스 검색

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.' );
 		return this.drawcalls;