Browse Source

Typo fix for previous commit

Baccanno 11 years ago
parent
commit
f094d588b0
1 changed files with 1 additions and 1 deletions
  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 ) {