Skip to content

Commit

Permalink
Fix: don't show image or mesh LODs in scenes list
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Apr 3, 2024
1 parent 25546cc commit 73ba41d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/scenes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export async function load({ params }) {
const files = readdirSync("static/assets");
const entries = files
.filter((file) => file.endsWith(".glb") || file.endsWith(".gltf"))
// don't show progressive assets / LOD files in this list
.filter(file => !(file.startsWith("image_") || file.startsWith("mesh_")))
.map((file) => {
let name = file.replaceAll("\\", "/").split("/").pop()!.split(".").shift();
name = toDisplayName(name!);
Expand Down

0 comments on commit 73ba41d

Please sign in to comment.