Parcourir la source

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

Michael Herzog il y a 4 ans
Parent
commit
610d5511b1
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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;