未验证 提交 43b59f94 编写于 作者: K Kai Salmen 提交者: GitHub

Move onUploadCallback from constructor to prototype scope (#21770)

上级 6acaabc7
......@@ -29,10 +29,10 @@ class BufferAttribute {
this.version = 0;
this.onUploadCallback = function () {};
}
onUploadCallback() {}
set needsUpdate( value ) {
if ( value === true ) this.version ++;
......
......@@ -16,10 +16,10 @@ class InterleavedBuffer {
this.uuid = MathUtils.generateUUID();
this.onUploadCallback = function () {};
}
onUploadCallback() {}
set needsUpdate( value ) {
if ( value === true ) this.version ++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册