mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-03 12:15:12 +08:00
SerializeGltfImage: add missing & std::string ref
Hopefully the compiler would optimize this away but better to avoid the copy in the first place.
This commit is contained in:
parent
d2b0af6915
commit
a9121550b9
@ -7023,7 +7023,7 @@ static void SerializeGltfBufferView(const BufferView &bufferView, json &o) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SerializeGltfImage(const Image &image, const std::string uri,
|
static void SerializeGltfImage(const Image &image, const std::string &uri,
|
||||||
json &o) {
|
json &o) {
|
||||||
// From 2.7.0, we look for `uri` parameter, not `Image.uri`
|
// From 2.7.0, we look for `uri` parameter, not `Image.uri`
|
||||||
// if uri is empty, the mimeType and bufferview should be set
|
// if uri is empty, the mimeType and bufferview should be set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user