mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 15:25:57 +08:00
Merge pull request #180 from ux3d/master
Explicitly use the correct constructor for empty object
This commit is contained in:
commit
e940337796
@ -4833,7 +4833,7 @@ static void SerializeExtensionMap(ExtensionMap &extensions, json &o) {
|
||||
if (!(extIt->first.empty())) { // name should not be empty, but for sure
|
||||
// create empty object so that an extension name is still included in
|
||||
// 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