Skip to content

Commit 1cda8f3

Browse files
committed
Updated builds.
1 parent 9145758 commit 1cda8f3

File tree

9 files changed

+1248
-85
lines changed

9 files changed

+1248
-85
lines changed

build/three.cjs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24179,7 +24179,7 @@ class Sprite extends Object3D {
2417924179
/**
2418024180
* Constructs a new sprite.
2418124181
*
24182-
* @param {SpriteMaterial} [material] - The sprite material.
24182+
* @param {(SpriteMaterial|SpriteNodeMaterial)} [material] - The sprite material.
2418324183
*/
2418424184
constructor( material = new SpriteMaterial() ) {
2418524185

@@ -24225,7 +24225,7 @@ class Sprite extends Object3D {
2422524225
/**
2422624226
* The sprite material.
2422724227
*
24228-
* @type {SpriteMaterial}
24228+
* @type {(SpriteMaterial|SpriteNodeMaterial)}
2422924229
*/
2423024230
this.material = material;
2423124231

@@ -42692,6 +42692,14 @@ class AnimationClip {
4269242692
*/
4269342693
this.uuid = generateUUID();
4269442694

42695+
/**
42696+
* An object that can be used to store custom data about the animation clip.
42697+
* It should not hold references to functions as these will not be cloned.
42698+
*
42699+
* @type {Object}
42700+
*/
42701+
this.userData = {};
42702+
4269542703
// this means it should figure out its duration by scanning the tracks
4269642704
if ( this.duration < 0 ) {
4269742705

@@ -42723,6 +42731,8 @@ class AnimationClip {
4272342731
const clip = new this( json.name, json.duration, tracks, json.blendMode );
4272442732
clip.uuid = json.uuid;
4272542733

42734+
clip.userData = JSON.parse( json.userData || '{}' );
42735+
4272642736
return clip;
4272742737

4272842738
}
@@ -42745,7 +42755,8 @@ class AnimationClip {
4274542755
'duration': clip.duration,
4274642756
'tracks': tracks,
4274742757
'uuid': clip.uuid,
42748-
'blendMode': clip.blendMode
42758+
'blendMode': clip.blendMode,
42759+
'userData': JSON.stringify( clip.userData ),
4274942760

4275042761
};
4275142762

@@ -43140,7 +43151,11 @@ class AnimationClip {
4314043151

4314143152
}
4314243153

43143-
return new this.constructor( this.name, this.duration, tracks, this.blendMode );
43154+
const clip = new this.constructor( this.name, this.duration, tracks, this.blendMode );
43155+
43156+
clip.userData = JSON.parse( JSON.stringify( this.userData ) );
43157+
43158+
return clip;
4314443159

4314543160
}
4314643161

build/three.core.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24177,7 +24177,7 @@ class Sprite extends Object3D {
2417724177
/**
2417824178
* Constructs a new sprite.
2417924179
*
24180-
* @param {SpriteMaterial} [material] - The sprite material.
24180+
* @param {(SpriteMaterial|SpriteNodeMaterial)} [material] - The sprite material.
2418124181
*/
2418224182
constructor( material = new SpriteMaterial() ) {
2418324183

@@ -24223,7 +24223,7 @@ class Sprite extends Object3D {
2422324223
/**
2422424224
* The sprite material.
2422524225
*
24226-
* @type {SpriteMaterial}
24226+
* @type {(SpriteMaterial|SpriteNodeMaterial)}
2422724227
*/
2422824228
this.material = material;
2422924229

@@ -42690,6 +42690,14 @@ class AnimationClip {
4269042690
*/
4269142691
this.uuid = generateUUID();
4269242692

42693+
/**
42694+
* An object that can be used to store custom data about the animation clip.
42695+
* It should not hold references to functions as these will not be cloned.
42696+
*
42697+
* @type {Object}
42698+
*/
42699+
this.userData = {};
42700+
4269342701
// this means it should figure out its duration by scanning the tracks
4269442702
if ( this.duration < 0 ) {
4269542703

@@ -42721,6 +42729,8 @@ class AnimationClip {
4272142729
const clip = new this( json.name, json.duration, tracks, json.blendMode );
4272242730
clip.uuid = json.uuid;
4272342731

42732+
clip.userData = JSON.parse( json.userData || '{}' );
42733+
4272442734
return clip;
4272542735

4272642736
}
@@ -42743,7 +42753,8 @@ class AnimationClip {
4274342753
'duration': clip.duration,
4274442754
'tracks': tracks,
4274542755
'uuid': clip.uuid,
42746-
'blendMode': clip.blendMode
42756+
'blendMode': clip.blendMode,
42757+
'userData': JSON.stringify( clip.userData ),
4274742758

4274842759
};
4274942760

@@ -43138,7 +43149,11 @@ class AnimationClip {
4313843149

4313943150
}
4314043151

43141-
return new this.constructor( this.name, this.duration, tracks, this.blendMode );
43152+
const clip = new this.constructor( this.name, this.duration, tracks, this.blendMode );
43153+
43154+
clip.userData = JSON.parse( JSON.stringify( this.userData ) );
43155+
43156+
return clip;
4314243157

4314343158
}
4314443159

build/three.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.tsl.js

Lines changed: 22 additions & 1 deletion
Large diffs are not rendered by default.

build/three.tsl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)