mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-07 09:33:51 +00:00
fix(editor): exportContentPack uses zoneManifest.mapId instead of hardcoded 9000
Users who set a custom Map ID via the Zone Metadata panel saw it ignored when exporting the WCP — the pack info would always say mapId=9000. Now reads from zoneManifest_, falling back to 9000 only when the field is unset (0).
This commit is contained in:
parent
f856a90281
commit
28c63cb6d9
1 changed files with 3 additions and 1 deletions
|
|
@ -1386,7 +1386,9 @@ void EditorApp::exportContentPack(const std::string& destPath) {
|
|||
info.author = project_.author.empty() ? "Kelsi Davis" : project_.author;
|
||||
info.description = project_.description.empty()
|
||||
? "Custom zone created with Wowee World Editor" : project_.description;
|
||||
info.mapId = 9000;
|
||||
// Honor the user-edited Map ID from the zone manifest panel rather than
|
||||
// always emitting 9000.
|
||||
info.mapId = zoneManifest_.mapId != 0 ? zoneManifest_.mapId : 9000;
|
||||
if (ContentPacker::packZone(dir, loadedMap_, destPath, info))
|
||||
showToast("Content pack exported: " + destPath);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue