Merge pull request #180 from ux3d/master

Explicitly use the correct constructor for empty object
This commit is contained in:
Syoyo Fujita
2019-07-23 18:55:34 +09:00
committed by GitHub

View File

@@ -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<>>>());
}
}
}