mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-09-18 16:24:33 +00:00
call json constructor explicitly
This commit is contained in:
@@ -4828,7 +4828,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<>>>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user