Browse Source

fixed for binary

Lewy Blue 7 years ago
parent
commit
69f8a46bd3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      examples/js/loaders/FBXLoader.js

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

@@ -1541,14 +1541,17 @@
 							switch ( type ) {
 							switch ( type ) {
 
 
 								case '0': // Point
 								case '0': // Point
+								case 0:
 									model = new THREE.PointLight( color, intensity, distance, decay );
 									model = new THREE.PointLight( color, intensity, distance, decay );
 									break;
 									break;
 
 
 								case '1': // Directional
 								case '1': // Directional
+								case 1:
 									model = new THREE.DirectionalLight( color, intensity );
 									model = new THREE.DirectionalLight( color, intensity );
 									break;
 									break;
 
 
 								case '2': // Spot
 								case '2': // Spot
+								case 2:
 									var angle = Math.PI / 3;
 									var angle = Math.PI / 3;
 
 
 									if ( lightAttribute.InnerAngle !== undefined ) {
 									if ( lightAttribute.InnerAngle !== undefined ) {
@@ -1572,7 +1575,7 @@
 									break;
 									break;
 
 
 								default:
 								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 );
 									model = new THREE.PointLight( color, intensity );
 									break;
 									break;