From a70ef5ea7be71ed9ca8070818e28237a3a886d86 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 29 Oct 2022 22:37:26 -0600 Subject: [PATCH] bspinfo: log the .obj/.png creation (lightmap preview) --- common/bspinfo.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/bspinfo.cc b/common/bspinfo.cc index 22c1a427..75478102 100644 --- a/common/bspinfo.cc +++ b/common/bspinfo.cc @@ -381,6 +381,8 @@ static void export_obj_and_lightmaps(const mbsp_t &bsp, const bspxentries_t &bsp strm.write((const char *) data, size); }, &strm, full_atlas.width, full_atlas.height, 4, full_atlas.pixels.data(), full_atlas.width * 4); memset(full_atlas.pixels.data(), 0, sizeof(*full_atlas.pixels.data()) * full_atlas.pixels.size()); + + logging::print("wrote {}\n", lightmaps_path); } auto ExportObjFace = [&full_atlas](std::ostream &f, const mbsp_t *bsp, const face_rect &face, int &vertcount) { @@ -426,6 +428,8 @@ static void export_obj_and_lightmaps(const mbsp_t &bsp, const bspxentries_t &bsp }; ExportObj(&bsp); + + logging::print("wrote {}\n", obj_path); } void serialize_bsp(const bspdata_t &bspdata, const mbsp_t &bsp, const fs::path &name)