Bläddra i källkod

AnimationClip: Prevent type loss in toJSON

Ian Purvis 4 år sedan
förälder
incheckning
9c437fd880
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/animation/AnimationClip.js

+ 1 - 1
src/animation/AnimationClip.js

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