提交 763eaae6 编写于 作者: D dubejf

Get rid of offsets in favor of drawcalls

上级 d0dff857
......@@ -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;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册