Browse Source

fixed color parsing

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

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

@@ -1603,13 +1603,7 @@
 
 							if ( lightAttribute.Color !== undefined ) {
 
-								var temp = lightAttribute.Color.value.split( ',' );
-
-								var r = parseFloat( temp[ 0 ] );
-								var g = parseFloat( temp[ 1 ] );
-								var b = parseFloat( temp[ 1 ] );
-
-								color = new THREE.Color( r, g, b );
+								color = parseColor( lightAttribute.Color.value );
 
 							}