Browse Source

correctly merged from dev

Fordy 10 years ago
parent
commit
f7434a046d
2 changed files with 4 additions and 0 deletions
  1. 2 0
      src/core/BufferAttribute.js
  2. 2 0
      src/core/InterleavedBufferAttribute.js

+ 2 - 0
src/core/BufferAttribute.js

@@ -4,6 +4,8 @@
 
 THREE.BufferAttribute = function ( array, itemSize ) {
 
+	this.uuid = THREE.Math.generateUUID();
+
 	this.array = array;
 	this.itemSize = itemSize;
 

+ 2 - 0
src/core/InterleavedBufferAttribute.js

@@ -4,6 +4,8 @@
 
 THREE.InterleavedBufferAttribute = function ( interleavedBuffer, itemSize, offset ) {
 
+	this.uuid = THREE.Math.generateUUID();
+
 	this.data = interleavedBuffer;
 	this.itemSize = itemSize;
 	this.offset = offset;