浏览代码

fixed for binary

Lewy Blue 7 年之前
父节点
当前提交
69f8a46bd3
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      examples/js/loaders/FBXLoader.js

+ 4 - 1
examples/js/loaders/FBXLoader.js

@@ -1541,14 +1541,17 @@
 							switch ( type ) {
 
 								case '0': // Point
+								case 0:
 									model = new THREE.PointLight( color, intensity, distance, decay );
 									break;
 
 								case '1': // Directional
+								case 1:
 									model = new THREE.DirectionalLight( color, intensity );
 									break;
 
 								case '2': // Spot
+								case 2:
 									var angle = Math.PI / 3;
 
 									if ( lightAttribute.InnerAngle !== undefined ) {
@@ -1572,7 +1575,7 @@
 									break;
 
 								default:
-									console.warn( 'THREE.FBXLoader: Unknown light type ' + lightAttribute.LightType + ', defaulting to a THREE.PointLight.' );
+									console.warn( 'THREE.FBXLoader: Unknown light type ' + lightAttribute.LightType.value + ', defaulting to a THREE.PointLight.' );
 									model = new THREE.PointLight( color, intensity );
 									break;