Explorar o código

More code style fixes

Juha-Pekka Arimaa %!s(int64=8) %!d(string=hai) anos
pai
achega
1dbdc9a2b5
Modificáronse 1 ficheiros con 2 adicións e 6 borrados
  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 );
 
 			}