Răsfoiți Sursa

BufferGeometry.offsets should be a getter

dubejf 10 ani în urmă
părinte
comite
d3dce0954b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;