From ff9ab6bcf9c579ead045111e9e6c29ab39656a36 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 27 May 2022 23:24:04 -0500 Subject: [PATCH 1/2] Change THREE.Math.generateUUID to THREE.MathUtils.generateUUID Looks like THREE.Math got changed to THREE.MathUtils at some point. This is one of 2 lines that needed to be updated. --- src/core/SPE.Group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/SPE.Group.js b/src/core/SPE.Group.js index 1e1d585..440f586 100644 --- a/src/core/SPE.Group.js +++ b/src/core/SPE.Group.js @@ -68,7 +68,7 @@ SPE.Group = function( options ) { options.texture = utils.ensureTypedArg( options.texture, types.OBJECT, {} ); // Assign a UUID to this instance - this.uuid = THREE.Math.generateUUID(); + this.uuid = THREE.MathUtils.generateUUID(); // If no `deltaTime` value is passed to the `SPE.Group.tick` function, // the value of this property will be used to advance the simulation. From 06cf30caee7164dc28e7a0c75817ca5aa31391c0 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 27 May 2022 23:25:27 -0500 Subject: [PATCH 2/2] Change THREE.Math.generateUUID to THREE.MathUtils.generateUUID Looks like THREE.Math got changed to THREE.MathUtils at some point. This is one of 2 lines that needed to be updated. --- src/core/SPE.Emitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/SPE.Emitter.js b/src/core/SPE.Emitter.js index c9eba34..a9b8585 100644 --- a/src/core/SPE.Emitter.js +++ b/src/core/SPE.Emitter.js @@ -176,7 +176,7 @@ SPE.Emitter = function( options ) { console.warn( 'onParticleSpawn has been removed. Please set properties directly to alter values at runtime.' ); } - this.uuid = THREE.Math.generateUUID(); + this.uuid = THREE.MathUtils.generateUUID(); this.type = utils.ensureTypedArg( options.type, types.NUMBER, SPE.distributions.BOX );