mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-16 23:45:58 +08:00
Modify error message.
This commit is contained in:
parent
8e2c24fb92
commit
ba28ddcc9e
@ -1689,7 +1689,7 @@ static bool ParseImage(Image *image, std::string *err, const json &o,
|
|||||||
if (hasBufferView) {
|
if (hasBufferView) {
|
||||||
if (!ParseNumberProperty(&bufferView, err, o, "bufferView", true)) {
|
if (!ParseNumberProperty(&bufferView, err, o, "bufferView", true)) {
|
||||||
if (err) {
|
if (err) {
|
||||||
(*err) += "Invalid `bufferView` definition for Image.\n";
|
(*err) += "Failed to parse `bufferView` for Image.\n";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1718,7 +1718,7 @@ static bool ParseImage(Image *image, std::string *err, const json &o,
|
|||||||
if (hasURI) {
|
if (hasURI) {
|
||||||
if (!ParseStringProperty(&uri, &tmp_err, o, "uri", true)) {
|
if (!ParseStringProperty(&uri, &tmp_err, o, "uri", true)) {
|
||||||
if (err) {
|
if (err) {
|
||||||
(*err) += "`bufferView` or `uri` required for Image.\n";
|
(*err) += "Failed to parse `uri` for Image.\n";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user