feat(editor): export WMO textures with the zone

Placed WMO buildings reference textures (walls, floors, decorations) that
were not being exported alongside the WOB files. Added collectWMOTextures()
which loads the root WMO + all group files and gathers every texture path,
then folds these into the same PNG export pass that handles terrain and M2
textures. Exported zones now have every texture they need across all model
types.
This commit is contained in:
Kelsi 2026-05-06 01:40:05 -07:00
parent a711a92875
commit f1d332825e
3 changed files with 47 additions and 1 deletions

View file

@ -20,6 +20,11 @@ public:
static std::vector<std::string> collectM2Textures(pipeline::AssetManager* am,
const std::string& m2Path);
// Collect all texture paths referenced by a WMO root file.
// Includes textures used by every group (loads root + group files via `am`).
static std::vector<std::string> collectWMOTextures(pipeline::AssetManager* am,
const std::string& wmoPath);
// Export all used textures as PNG to an output directory
// Returns count of successfully exported textures
static int exportTexturesAsPng(pipeline::AssetManager* am,