diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index cc73bef6b1..fa8cc6416b 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -5,6 +5,8 @@ A new header is inserted each time a *tag* is created. ## main branch +- gltfio: fix glTF breaking issue + ## v1.28.2 - gltfio: support EXT_meshopt_compression diff --git a/libs/gltfio/src/ResourceLoader.cpp b/libs/gltfio/src/ResourceLoader.cpp index 993e34dea6..8b83c4f30b 100644 --- a/libs/gltfio/src/ResourceLoader.cpp +++ b/libs/gltfio/src/ResourceLoader.cpp @@ -509,7 +509,7 @@ bool ResourceLoader::loadResources(FFilamentAsset* asset, bool async) { data = bufferData + accessor->offset; } else { bufferData = (const uint8_t*) accessor->buffer_view->buffer->data; - data = computeBindingOffset(accessor) + bufferData + accessor->offset; + data = computeBindingOffset(accessor) + bufferData; } assert_invariant(bufferData); const uint32_t size = computeBindingSize(accessor);