Преглед изворни кода

Don't return a copy of drawcalls in offsets getter

dubejf пре 11 година
родитељ
комит
8e36256b17
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -52,7 +52,7 @@ THREE.BufferGeometry.prototype = {
 	offsets: function () {
 	offsets: function () {
 
 
 		console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .drawcalls.' );
 		console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .drawcalls.' );
-		return this.drawcalls.slice();
+		return this.drawcalls;
 
 
 	},
 	},
 
 

粤ICP备19079148号