previous was : var fullPath = texturePath + "/" + sourceFile; but texturePath may already have a slash (see extractUrlBase function) changed slash to texturePath.slice(-1) === '/' : '' : '/'
@@ -146,7 +146,8 @@ THREE.Loader.prototype = {
function create_texture( where, name, sourceFile, repeat, offset, wrap, anisotropy ) {
var isCompressed = /\.dds$/i.test( sourceFile );
- var fullPath = texturePath + "/" + sourceFile;
+
+ var fullPath = texturePath + texturePath.slice(-1) === '/' : '' : '/' + sourceFile;
if ( isCompressed ) {