Browse Source

Merge pull request #13463 from aardgoose/remove-uuid-2

remove uuid from BufferAttribute etc.
Mr.doob 7 years ago
parent
commit
8e41c2ef2e

+ 0 - 2
src/core/BufferAttribute.js

@@ -2,7 +2,6 @@ import { Vector4 } from '../math/Vector4.js';
 import { Vector3 } from '../math/Vector3.js';
 import { Vector2 } from '../math/Vector2.js';
 import { Color } from '../math/Color.js';
-import { _Math } from '../math/Math.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/
@@ -16,7 +15,6 @@ function BufferAttribute( array, itemSize, normalized ) {
 
 	}
 
-	this.uuid = _Math.generateUUID();
 	this.name = '';
 
 	this.array = array;

+ 0 - 3
src/core/InterleavedBuffer.js

@@ -1,4 +1,3 @@
-import { _Math } from '../math/Math.js';
 
 /**
  * @author benaadams / https://twitter.com/ben_a_adams
@@ -6,8 +5,6 @@ import { _Math } from '../math/Math.js';
 
 function InterleavedBuffer( array, stride ) {
 
-	this.uuid = _Math.generateUUID();
-
 	this.array = array;
 	this.stride = stride;
 	this.count = array !== undefined ? array.length / stride : 0;

+ 0 - 3
src/core/InterleavedBufferAttribute.js

@@ -1,4 +1,3 @@
-import { _Math } from '../math/Math.js';
 
 /**
  * @author benaadams / https://twitter.com/ben_a_adams
@@ -6,8 +5,6 @@ import { _Math } from '../math/Math.js';
 
 function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) {
 
-	this.uuid = _Math.generateUUID();
-
 	this.data = interleavedBuffer;
 	this.itemSize = itemSize;
 	this.offset = offset;