Explorar o código

BufferGeometry.offsets should be a getter

dubejf %!s(int64=10) %!d(string=hai) anos
pai
achega
d3dce0954b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;