Skip to content

Commit 9a5522d

Browse files
authored
Merge pull request #20964 from lk-lkaz/fix_packLDrawModel
packLDrawModel: Fix objectPath formatting to support Windows PC
2 parents 79f80b4 + 19dbe70 commit 9a5522d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/packLDrawModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function parseObject( fileName, isRoot ) {
172172

173173
}
174174

175-
var objectPath = path.join( prefix, fileName );
175+
var objectPath = path.join( prefix, fileName ).trim().replace( /\\/g, '/' );
176176

177177
if ( ! objectContent ) {
178178

0 commit comments

Comments
 (0)