@gltf-transform/core
Advanced tools
Comparing version 0.12.2 to 0.12.3
{ | ||
"name": "@gltf-transform/core", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"repository": "github:donmccurdy/glTF-Transform", | ||
@@ -43,3 +43,3 @@ "homepage": "https://gltf-transform.donmccurdy.com/", | ||
}, | ||
"gitHead": "cc05ea715fe02fbf0f077f00795aae3bb9ac25c9" | ||
"gitHead": "9384b14214f1541f32bc1cdb6dadd60d799a7d34" | ||
} |
@@ -35,5 +35,5 @@ import { Format, GLB_BUFFER, NAME, PropertyType, VERSION, VertexLayout } from '../constants'; | ||
const root = doc.getRoot(); | ||
const jsonDoc = {json: {asset: root.getAsset()}, resources: {}} as JSONDocument; | ||
const json = jsonDoc.json; | ||
json.asset.generator = `glTF-Transform ${VERSION}`; | ||
const asset = {...root.getAsset(), generator: `glTF-Transform ${VERSION}`}; | ||
const json = {asset} as GLTF.IGLTF; | ||
const jsonDoc = {json, resources: {}} as JSONDocument; | ||
@@ -40,0 +40,0 @@ const context = new WriterContext(doc, jsonDoc, options); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1256720