donmccurdy / glTF-Transform

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

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

Closed donmccurdy closed 8 months ago

donmccurdy commented 8 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.