Просмотр исходного кода

BufferGeometry.offsets should be a getter

dubejf 10 лет назад
Родитель
Сommit
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;

粤ICP备19079148号