mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
make a copy of original models file when baking domain
This commit is contained in:
parent
499897e271
commit
a7f154a853
1 changed files with 9 additions and 0 deletions
|
@ -100,6 +100,15 @@ void DomainBaker::loadLocalFile() {
|
|||
// load up the local entities file
|
||||
QFile entitiesFile { _localEntitiesFileURL.toLocalFile() };
|
||||
|
||||
// first make a copy of the local entities file in our output folder
|
||||
if (!entitiesFile.copy(_uniqueOutputPath + "/" + "original-" + _localEntitiesFileURL.fileName())) {
|
||||
// add an error to our list to specify that the file could not be copied
|
||||
handleError("Could not make a copy of entities file");
|
||||
|
||||
// return to stop processing
|
||||
return;
|
||||
}
|
||||
|
||||
if (!entitiesFile.open(QIODevice::ReadOnly)) {
|
||||
// add an error to our list to specify that the file could not be read
|
||||
handleError("Could not open entities file");
|
||||
|
|
Loading…
Reference in a new issue