diff --git a/tiny_gltf.h b/tiny_gltf.h index 5b0aca5..27a4322 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -5570,6 +5570,13 @@ bool TinyGLTF::LoadFromString(Model *model, std::string *err, std::string *warn, model->bufferViews[size_t(model->accessors[size_t(attribute.second)].bufferView)] .target = TINYGLTF_TARGET_ARRAY_BUFFER; } + + for(auto &target : primitive.targets) { + for(auto &attribute : target) { + model->bufferViews[size_t(model->accessors[size_t(attribute.second)].bufferView)] + .target = TINYGLTF_TARGET_ARRAY_BUFFER; + } + } } }