Browse Source

LWOLoader: case insensitive texture path

Guilherme Avila 6 years ago
parent
commit
0c55b834fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/LWOLoader.js

+ 1 - 1
examples/js/loaders/LWOLoader.js

@@ -678,7 +678,7 @@ THREE.LWOLoader = ( function () {
 		// In this case, we'll strip out everything and load 'bumpMap.png' from the same directory as the model
 		cleanPath( path ) {
 
-			if ( path.indexOf( 'Images' ) === 0 || path.indexOf( 'images' ) === 0 ) return './' + path;
+			if ( path.toLowerCase().indexOf( 'images' ) === 0 ) return './' + path;
 			return path.split( '/' ).pop().split( '\\' ).pop();
 
 		},