donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.3k stars 145 forks source link

feat(functions): Add 'keepExtras' option to prune() #1302

Closed donmccurdy closed 3 months ago

donmccurdy commented 3 months ago

Continues #1281, co-authored by @Archimagus. Adds a keepExtras option to prune(), defaulting to false, which allows properties that would otherwise be pruned to be skipped if they contain custom extras.