Просмотр исходного кода

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 лет назад
Родитель
Сommit
4da3cc1140
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/animation/AnimationClip.js

+ 2 - 1
src/animation/AnimationClip.js

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

粤ICP备19079148号