Ver Fonte

More code style fixes

Juha-Pekka Arimaa há 7 anos atrás
pai
commit
1dbdc9a2b5
1 ficheiros alterados com 2 adições e 6 exclusões
  1. 2 6
      examples/js/loaders/FBXLoader.js

+ 2 - 6
examples/js/loaders/FBXLoader.js

@@ -386,17 +386,13 @@
 		texture.wrapS = valueU === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
 		texture.wrapT = valueV === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
 
-		if ( textureNode.properties.Scaling ) {
+		if ( 'Scaling' in textureNode.properties ) {
 
 			values = textureNode.properties.Scaling.value;
 
 			if ( typeof values === 'string' ) {
 
-				values = values.split( ',' ).map( function( number ) {
-
-					return parseFloat( number );
-
-				} );
+				values = parseFloatArray( values );
 
 			}