瀏覽代碼

Merge pull request #7603 from simonThiele/dev

copy function should return the result to work
Mr.doob 9 年之前
父節點
當前提交
ec57528538
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      src/core/InterleavedBuffer.js
  2. 1 1
      src/core/InterleavedBufferAttribute.js

+ 2 - 0
src/core/InterleavedBuffer.js

@@ -52,6 +52,8 @@ THREE.InterleavedBuffer.prototype = {
 		this.stride = source.stride;
 		this.stride = source.stride;
 		this.dynamic = source.dynamic;
 		this.dynamic = source.dynamic;
 
 
+		return this;
+
 	},
 	},
 
 
 	copyAt: function ( index1, attribute, index2 ) {
 	copyAt: function ( index1, attribute, index2 ) {

+ 1 - 1
src/core/InterleavedBufferAttribute.js

@@ -26,7 +26,7 @@ THREE.InterleavedBufferAttribute.prototype = {
 
 
 	get count() {
 	get count() {
 
 
-		return this.data.array.length / this.data.stride;
+		return this.data.count;
 
 
 	},
 	},