瀏覽代碼

fix potential null reference.

Ben Houston 10 年之前
父節點
當前提交
1cefeae8a1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;