Browse Source

Add uuid field to AnimationClip.toJSON

When converting the scene to JSON all objects except animation clips have uuid fields included. This change adds the uuid to the JSON object for AnimationClips.
etr2460 7 years ago
parent
commit
4da3cc1140
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/animation/AnimationClip.js

+ 2 - 1
src/animation/AnimationClip.js

@@ -59,7 +59,8 @@ Object.assign( AnimationClip, {
 
 
 			'name': clip.name,
 			'name': clip.name,
 			'duration': clip.duration,
 			'duration': clip.duration,
-			'tracks': tracks
+			'tracks': tracks,
+			'uuid': clip.uuid
 
 
 		};
 		};