mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 23:06:01 +08:00
call json constructor explicitly
This commit is contained in:
parent
c0b79afecc
commit
f3ef880029
@ -4828,7 +4828,7 @@ static void SerializeExtensionMap(ExtensionMap &extensions, json &o) {
|
|||||||
if (!(extIt->first.empty())) { // name should not be empty, but for sure
|
if (!(extIt->first.empty())) { // name should not be empty, but for sure
|
||||||
// create empty object so that an extension name is still included in
|
// create empty object so that an extension name is still included in
|
||||||
// json.
|
// json.
|
||||||
extMap[extIt->first] = json({});
|
extMap[extIt->first] = json(std::initializer_list<nlohmann::detail::json_ref<nlohmann::basic_json<>>>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user