remap entity IDs on export also

This commit is contained in:
Seth Alves 2015-12-07 06:03:47 -08:00
parent f53571ac81
commit f6b1ef85b3

View file

@ -2439,6 +2439,10 @@ bool Application::exportEntities(const QString& filename, float x, float y, floa
properties.setPosition(properties.getPosition() - root);
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());
} else {
qCDebug(interfaceapp) << "No models were selected";