Browse Source

Fix objectPath formatting

Fixed objectPath formatting to support Windows PC file paths separated by "\".
L-Kaz 4 years ago
parent
commit
19dbe70f46
1 changed files with 1 additions and 1 deletions
  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 ) {