Ver Fonte

AnimationClip: Prevent type loss in toJSON

Ian Purvis há 4 anos atrás
pai
commit
9c437fd880
1 ficheiros alterados com 1 adições e 1 exclusões
  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 );
 
 	}