Răsfoiți Sursa

AnimationClip: Prevent type loss in toJSON

Ian Purvis 4 ani în urmă
părinte
comite
9c437fd880
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 );
 
 	}