提交 ab9605b9 编写于 作者: A Al McElrath

Add missing onUpload feature (from BufferAttribute)

上级 b870fd26
......@@ -15,6 +15,8 @@ function InterleavedBuffer( array, stride ) {
this.dynamic = false;
this.updateRange = { offset: 0, count: - 1 };
this.onUploadCallback = function () {};
this.version = 0;
}
......@@ -92,6 +94,14 @@ InterleavedBuffer.prototype = {
return new this.constructor().copy( this );
},
onUpload: function ( callback ) {
this.onUploadCallback = callback;
return this;
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册