Skip to content

Commit

Permalink
Unpartition after merge. Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed May 7, 2024
1 parent 2b878d3 commit e9a8525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ async function addSpecPropertyTexture(document: Document, className: string) {
const image = await savePixels(pixels, "image/png");
const texture = document.createTexture();
texture.setImage(image);
texture.setURI("propertyTextuer.png");
texture.setURI("propertyTexture.png");

// Create and add a property texture with the following structure:
// {
Expand Down
4 changes: 4 additions & 0 deletions src/tools/gltfExtensionsUtils/StructuralMetadataMerger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Document, Primitive } from "@gltf-transform/core";
import { Property } from "@gltf-transform/core";
import { IProperty } from "@gltf-transform/core";

import { unpartition } from "@gltf-transform/functions";

import { EXTStructuralMetadata } from "../../gltf-extensions/";
import { StructuralMetadata } from "../../gltf-extensions/";
import { MeshPrimitiveStructuralMetadata } from "../../gltf-extensions/";
Expand Down Expand Up @@ -103,6 +105,7 @@ export class StructuralMetadataMerger {
"EXT_structural_metadata",
copiedStructuralMetadata
);
await targetDocument.transform(unpartition());
return;
}

Expand All @@ -121,6 +124,7 @@ export class StructuralMetadataMerger {
mainMergeMap,
schemaUriResolver
);
await targetDocument.transform(unpartition());
}
}

Expand Down

0 comments on commit e9a8525

Please sign in to comment.