Browse Source

Get rid of offsets in favor of drawcalls

dubejf 10 years ago
parent
commit
763eaae627
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/core/BufferGeometry.js

+ 7 - 2
src/core/BufferGeometry.js

@@ -17,7 +17,6 @@ THREE.BufferGeometry = function () {
 	this.morphAttributes = [];
 
 	this.drawcalls = [];
-	this.offsets = this.drawcalls; // backwards compatibility
 
 	this.boundingBox = null;
 	this.boundingSphere = null;
@@ -50,6 +49,13 @@ THREE.BufferGeometry.prototype = {
 
 	},
 
+	offsets: function () {
+
+		console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .drawcalls.' );
+		return this.drawcalls.slice();
+
+	},
+
 	addDrawCall: function ( start, count, indexOffset ) {
 
 		this.drawcalls.push( {
@@ -65,7 +71,6 @@ THREE.BufferGeometry.prototype = {
 	clearDrawCalls: function () {
 
 		this.drawcalls = [];
-		this.offsets = this.drawcalls;
 
 	},