mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 00:35:37 +02:00
Make output folder cleaner for single model bake when baked model url is given as input
This commit is contained in:
parent
09c30269d4
commit
41c0594361
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ std::unique_ptr<ModelBaker> getModelBaker(const QUrl& bakeableModelURL, TextureB
|
|||
auto filename = bakeableModelURL.fileName();
|
||||
|
||||
// Output in a sub-folder with the name of the model, potentially suffixed by a number to make it unique
|
||||
auto baseName = filename.left(filename.lastIndexOf('.'));
|
||||
auto baseName = filename.left(filename.lastIndexOf('.')).left(filename.lastIndexOf(".baked"));
|
||||
auto subDirName = "/" + baseName;
|
||||
int i = 1;
|
||||
while (QDir(contentOutputPath + subDirName).exists()) {
|
||||
|
|
Loading…
Reference in a new issue