mirror of
https://github.com/minetest/minetest.git
synced 2024-07-04 15:05:27 +02:00
Replace some spaces with tabs
This commit is contained in:
parent
a372397416
commit
818ac9ea3d
@ -678,12 +678,12 @@ std::optional<tiniergltf::GlTF> CGLTFMeshFileLoader::tryParseGLTF(io::IReadFile*
|
|||||||
// We probably don't need this, but add it just to be sure.
|
// We probably don't need this, but add it just to be sure.
|
||||||
buf[size] = '\0';
|
buf[size] = '\0';
|
||||||
Json::CharReaderBuilder builder;
|
Json::CharReaderBuilder builder;
|
||||||
const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());
|
const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());
|
||||||
Json::Value json;
|
Json::Value json;
|
||||||
JSONCPP_STRING err;
|
JSONCPP_STRING err;
|
||||||
if (!reader->parse(buf.get(), buf.get() + size, &json, &err)) {
|
if (!reader->parse(buf.get(), buf.get() + size, &json, &err)) {
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return tiniergltf::GlTF(json);
|
return tiniergltf::GlTF(json);
|
||||||
} catch (const std::runtime_error &e) {
|
} catch (const std::runtime_error &e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user