Przeglądaj źródła

Merge pull request #21342 from ianpurvis/fix-keyframe-track-tojson

KeyframeTrack: Fix toJSON static override check
Mr.doob 5 lat temu
rodzic
commit
e8c7eaf721
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/animation/KeyframeTrack.js

+ 1 - 1
src/animation/KeyframeTrack.js

@@ -34,7 +34,7 @@ class KeyframeTrack {
 		let json;
 		let json;
 
 
 		// derived classes can define a static toJSON method
 		// derived classes can define a static toJSON method
-		if ( trackType.toJSON !== undefined ) {
+		if ( trackType.toJSON !== this.toJSON ) {
 
 
 			json = trackType.toJSON( track );
 			json = trackType.toJSON( track );
 
 

粤ICP备19079148号