Explorar o código

fix potential null reference.

Ben Houston %!s(int64=10) %!d(string=hai) anos
pai
achega
1cefeae8a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/loaders/ObjectLoader.js

+ 1 - 1
src/loaders/ObjectLoader.js

@@ -627,7 +627,7 @@ THREE.ObjectLoader.prototype = {
 
 			}
 
-			if( data.animations ) {
+			if( data.animations && data.animations.tracks ) {
 
 				var dataTracks = data.animations.tracks;
 

粤ICP备19079148号