Explorar o código

cleanup LDrawLoader

Gero3 %!s(int64=6) %!d(string=hai) anos
pai
achega
26ecf98bcb
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      examples/js/loaders/LDrawLoader.js

+ 1 - 3
examples/js/loaders/LDrawLoader.js

@@ -1045,8 +1045,6 @@ THREE.LDrawLoader = ( function () {
 			var mainColourCode = parentParseScope.mainColourCode;
 			var mainEdgeColourCode = parentParseScope.mainEdgeColourCode;
 
-			var url = parentParseScope.url;
-
 			var currentParseScope = this.getCurrentParseScope();
 
 			// Parse result variables
@@ -1356,7 +1354,7 @@ THREE.LDrawLoader = ( function () {
 							0, 0, 0, 1
 						);
 
-						var fileName = lp.getRemainingString().trim().replace( "\\", "/" );
+						var fileName = lp.getRemainingString().trim().replace( /\\/g, "/" );
 
 						if ( scope.fileMap[ fileName ] ) {
 

粤ICP备19079148号