fix folder name creation for duplicated models

This commit is contained in:
Stephen Birarda 2017-12-05 12:18:57 -08:00
parent a4b3180271
commit 5688a166f8

View file

@ -195,9 +195,9 @@ void DomainBaker::enumerateEntities() {
auto filename = modelURL.fileName();
auto baseName = filename.left(filename.lastIndexOf('.'));
auto subDirName = "/" + baseName;
int i = 0;
int i = 1;
while (QDir(_contentOutputPath + subDirName).exists()) {
subDirName = "/" + baseName + "-" + i++;
subDirName = "/" + baseName + "-" + QString::number(i++);
}
QSharedPointer<FBXBaker> baker {
new FBXBaker(modelURL, []() -> QThread* {