Explorar el Código

Fix objectPath formatting

Fixed objectPath formatting to support Windows PC file paths separated by "\".
L-Kaz hace 4 años
padre
commit
19dbe70f46
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/packLDrawModel.js

+ 1 - 1
utils/packLDrawModel.js

@@ -172,7 +172,7 @@ function parseObject( fileName, isRoot ) {
 
 	}
 
-	var objectPath = path.join( prefix, fileName );
+	var objectPath = path.join( prefix, fileName ).trim().replace( /\\/g, '/' );
 
 	if ( ! objectContent ) {