Skip to content

Commit 610d551

Browse files
authored
BufferGeometry: Add comment to toJSON(). (#21464)
1 parent a81b902 commit 610d551

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/BufferGeometry.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,8 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
910910

911911
}
912912

913+
// for simplicity the code assumes attributes are not shared across geometries, see #15811
914+
913915
data.data = { attributes: {} };
914916

915917
const index = this.index;

0 commit comments

Comments
 (0)