Skip to content

Commit

Permalink
fix(i3s): fix for /sublayers paths (#3150)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariaterekhova-actionengine committed Oct 30, 2024
1 parent 70a883a commit 10a1db0
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions modules/i3s/src/lib/parsers/parse-slpk/slpk-archieve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,35 @@ const PATH_DESCRIPTIONS: {test: RegExp; extensions: string[]}[] = [
extensions: ['3dSceneLayer.json.gz']
},
{
test: /^nodepages\/\d+$/,
test: /nodepages\/\d+$/,
extensions: ['.json.gz']
},
{
test: /^nodes\/(\d+|root)$/,
test: /sublayers\/\d+$/,
extensions: ['/3dSceneLayer.json.gz']
},
{
test: /nodes\/(\d+|root)$/,
extensions: ['/3dNodeIndexDocument.json.gz']
},
{
test: /^nodes\/\d+\/textures\/.+$/,
test: /nodes\/\d+\/textures\/.+$/,
extensions: ['.jpg', '.png', '.bin.dds.gz', '.ktx', '.ktx2']
},
{
test: /^nodes\/\d+\/geometries\/\d+$/,
test: /nodes\/\d+\/geometries\/\d+$/,
extensions: ['.bin.gz', '.draco.gz']
},
{
test: /^nodes\/\d+\/attributes\/f_\d+\/\d+$/,
test: /nodes\/\d+\/attributes\/f_\d+\/\d+$/,
extensions: ['.bin.gz']
},
{
test: /^statistics\/f_\d+\/\d+$/,
test: /statistics\/f_\d+\/\d+$/,
extensions: ['.json.gz']
},
{
test: /^nodes\/\d+\/shared$/,
test: /nodes\/\d+\/shared$/,
extensions: ['/sharedResource.json.gz']
}
];
Expand Down

0 comments on commit 10a1db0

Please sign in to comment.