Reapply "fix: overview is null"

This reverts commit 021226f22d.

忘了修复没进了
This commit is contained in:
status102
2026-03-15 00:44:58 +08:00
parent 021226f22d
commit c21a0a9c44

View File

@@ -825,6 +825,11 @@ bool update_levels_json(const fs::path& input_file, const fs::path& output_dir)
stage_obj.erase("tiles");
stage_obj.erase("view");
stage_obj["filename"] = filename;
for (auto& [key, val] : stage_obj) {
if (val.is_null()) {
stage_obj[key] = "Unknown";
}
}
overview[std::move(stem)] = std::move(stage_obj);
}