瀏覽代碼

AnimationClip: Prevent type loss in toJSON

Ian Purvis 4 年之前
父節點
當前提交
9c437fd880
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 );
 
 	}