bspinfo: log the .obj/.png creation (lightmap preview)
This commit is contained in:
parent
22b9329489
commit
a70ef5ea7b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue