mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
refactor(editor): extract zone/project mesh-bake handlers into cli_bake.cpp
Moves the 3D-export bake handlers out of main.cpp: --bake-zone-glb --bake-zone-stl --bake-zone-obj --bake-project-obj --bake-project-stl --bake-project-glb The STL + GLB project bakes share a combined dispatcher (one function with internal STL-vs-GLB branching) since they walk the same per-zone asset list and only differ in the output emission code. main.cpp drops 12,119 → 11,261 lines (-858). The combined-OR opener spanning multiple lines created a parse-error fragment in the extraction; caught + manually fixed before commit (same pattern as the WOM info attachments/particles/sequences extraction).
This commit is contained in:
parent
b75924762e
commit
d03c2dad1f
4 changed files with 952 additions and 863 deletions
18
tools/editor/cli_bake.hpp
Normal file
18
tools/editor/cli_bake.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
namespace wowee {
|
||||
namespace editor {
|
||||
namespace cli {
|
||||
|
||||
// Dispatch the zone & project mesh-bake handlers — these stitch
|
||||
// every WHM heightfield + WOM/WOB asset in a zone into a single
|
||||
// 3D file (.obj / .stl / .glb) for external DCC import.
|
||||
// --bake-zone-glb --bake-zone-stl --bake-zone-obj
|
||||
// --bake-project-obj --bake-project-stl --bake-project-glb
|
||||
//
|
||||
// Returns true if matched; outRc holds the exit code.
|
||||
bool handleBake(int& i, int argc, char** argv, int& outRc);
|
||||
|
||||
} // namespace cli
|
||||
} // namespace editor
|
||||
} // namespace wowee
|
||||
Loading…
Add table
Add a link
Reference in a new issue