Selaa lähdekoodia

AnimationClip: Prevent type loss in toJSON

Ian Purvis 4 vuotta sitten
vanhempi
commit
9c437fd880
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 );
 
 	}