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

Update documentation for Accessor usage #1235

Closed harrycollin closed 5 months ago

harrycollin commented 5 months ago

The usage stated that you can call a non-existent method on Document called listBuffers(). This exists on Root instead.

Changed: .setBuffer(doc.listBuffers()[0]);

To: .setBuffer(doc.getRoot().listBuffers()[0]);

donmccurdy commented 5 months ago

Thank you!