mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
remap entity IDs on export also
This commit is contained in:
parent
f53571ac81
commit
f6b1ef85b3
1 changed files with 4 additions and 0 deletions
|
@ -2439,6 +2439,10 @@ bool Application::exportEntities(const QString& filename, float x, float y, floa
|
||||||
properties.setPosition(properties.getPosition() - root);
|
properties.setPosition(properties.getPosition() - root);
|
||||||
exportTree->addEntity(id, properties);
|
exportTree->addEntity(id, properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remap IDs on export so that we aren't publishing the IDs of entities in our domain
|
||||||
|
exportTree->remapIDs();
|
||||||
|
|
||||||
exportTree->writeToSVOFile(filename.toLocal8Bit().constData());
|
exportTree->writeToSVOFile(filename.toLocal8Bit().constData());
|
||||||
} else {
|
} else {
|
||||||
qCDebug(interfaceapp) << "No models were selected";
|
qCDebug(interfaceapp) << "No models were selected";
|
||||||
|
|
Loading…
Reference in a new issue