|
@@ -385,21 +385,25 @@
|
|
|
|
|
|
texture.wrapS = valueU === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
|
|
|
texture.wrapT = valueV === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
|
|
|
-
|
|
|
- if ( textureNode.properties.Scaling ) {
|
|
|
-
|
|
|
- var values = textureNode.properties.Scaling.value
|
|
|
-
|
|
|
- if ( typeof values === "string" ) {
|
|
|
- values = values.split(",").map(function(number) {
|
|
|
- return parseFloat(number);
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- texture.repeat.x = values[0]
|
|
|
- texture.repeat.y = values[1]
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
+ if ( textureNode.properties.Scaling ) {
|
|
|
+
|
|
|
+ values = textureNode.properties.Scaling.value;
|
|
|
+
|
|
|
+ if ( typeof values === 'string' ) {
|
|
|
+
|
|
|
+ values = values.split( ',' ).map( function( number ) {
|
|
|
+
|
|
|
+ return parseFloat( number );
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ texture.repeat.x = values[ 0 ];
|
|
|
+ texture.repeat.y = values[ 1 ];
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
loader.setPath( currentPath );
|
|
|
|