Browse Source

Renamed Math.uuid() to Math.generateUUID()

Mr.doob 12 years ago
parent
commit
a220c6c347

+ 1 - 1
src/core/BufferGeometry.js

@@ -4,7 +4,7 @@
 
 THREE.BufferGeometry = function () {
 
-	this.id = THREE.Math.uuid();
+	this.id = THREE.Math.generateUUID();
 
 	// attributes
 

+ 1 - 1
src/core/Geometry.js

@@ -9,7 +9,7 @@
 
 THREE.Geometry = function () {
 
-	this.id = THREE.Math.uuid();
+	this.id = THREE.Math.generateUUID();
 
 	this.name = '';
 	this.uuid = '';

+ 1 - 1
src/core/Object3D.js

@@ -7,7 +7,7 @@
 
 THREE.Object3D = function () {
 
-	this.id = THREE.Math.uuid();
+	this.id = THREE.Math.generateUUID();
 
 	this.name = '';
 	this.uuid = '';

+ 1 - 1
src/materials/Material.js

@@ -5,7 +5,7 @@
 
 THREE.Material = function () {
 
-	this.id = THREE.Math.uuid();
+	this.id = THREE.Math.generateUUID();
 
 	this.name = '';
 	this.uuid = '';

+ 2 - 1
src/math/Math.js

@@ -1,10 +1,11 @@
 /**
  * @author alteredq / http://alteredqualia.com/
+ * @author mrdoob / http://mrdoob.com/
  */
 
 THREE.Math = {
 
-	uuid: function () {
+	generateUUID: function () {
 
 		// http://www.broofa.com/Tools/Math.uuid.htm
 		

+ 1 - 1
src/textures/Texture.js

@@ -6,7 +6,7 @@
 
 THREE.Texture = function ( image, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
 
-	this.id = THREE.Math.uuid();
+	this.id = THREE.Math.generateUUID();
 
 	this.name = '';
 	this.uuid = '';