Explorar el Código

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

KeyframeTrack: Fix toJSON static override check
Mr.doob hace 4 años
padre
commit
e8c7eaf721
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/animation/KeyframeTrack.js

+ 1 - 1
src/animation/KeyframeTrack.js

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