Jelajahi Sumber

AnimationClip: Prevent type loss in toJSON

Ian Purvis 4 tahun lalu
induk
melakukan
9c437fd880
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/animation/AnimationClip.js

+ 1 - 1
src/animation/AnimationClip.js

@@ -387,7 +387,7 @@ class AnimationClip {
 
 	toJSON() {
 
-		return AnimationClip.toJSON( this );
+		return this.constructor.toJSON( this );
 
 	}