浏览代码

BufferGeometry: Add comment to toJSON(). (#21464)

Michael Herzog 4 年之前
父节点
当前提交
610d5511b1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/core/BufferGeometry.js

+ 2 - 0
src/core/BufferGeometry.js

@@ -910,6 +910,8 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
 
 		}
 
+		// for simplicity the code assumes attributes are not shared across geometries, see #15811
+
 		data.data = { attributes: {} };
 
 		const index = this.index;