mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge pull request #15465 from SamGondelman/baking82
Case 22371: Fix domain baking (RC82)
This commit is contained in:
commit
6352c66e6b
1 changed files with 3 additions and 2 deletions
|
@ -752,10 +752,11 @@ void DomainBaker::writeNewEntitiesFile() {
|
|||
// time to write out a main models.json.gz file
|
||||
|
||||
// first setup a document with the entities array below the entities key
|
||||
_json.object()[ENTITIES_OBJECT_KEY] = _entities;
|
||||
QJsonObject json = _json.object();
|
||||
json[ENTITIES_OBJECT_KEY] = _entities;
|
||||
|
||||
// turn that QJsonDocument into a byte array ready for compression
|
||||
QByteArray jsonByteArray = _json.toJson();
|
||||
QByteArray jsonByteArray = QJsonDocument(json).toJson();
|
||||
|
||||
// compress the json byte array using gzip
|
||||
QByteArray compressedJson;
|
||||
|
|
Loading…
Reference in a new issue