2
0
Эх сурвалжийг харах

Typo fix for previous commit

Baccanno 12 жил өмнө
parent
commit
f094d588b0
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/loaders/Loader.js

+ 1 - 1
src/loaders/Loader.js

@@ -147,7 +147,7 @@ THREE.Loader.prototype = {
 
 			var isCompressed = /\.dds$/i.test( sourceFile );
 			
-			var fullPath = texturePath + texturePath.slice(-1) === '/' : '' : '/' + sourceFile;
+			var fullPath = texturePath + (texturePath.slice(-1) === '/' ? '' : '/') + sourceFile;
 
 			if ( isCompressed ) {