Skip to content

Commit

Permalink
Set proper generator for merged document
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Apr 20, 2024
1 parent 1b2778c commit b1facbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/contentProcessing/GltfTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ export class GltfTransform {
// Create one document from each buffer and merge them
const io = await GltfTransform.getIO();
const mergedDocument = new Document();
const root = mergedDocument.getRoot();
const asset = root.getAsset();
asset.generator = "glTF-Transform";
for (const inputGlbBuffer of inputGlbBuffers) {
const inputDocument = await io.readBinary(inputGlbBuffer);
mergedDocument.merge(inputDocument);
Expand Down

0 comments on commit b1facbc

Please sign in to comment.