mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 14:01:38 +02:00
fix indexOf checks by using lastIndexOf
This commit is contained in:
parent
258533de7b
commit
c43a4eec86
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ FBXBaker::FBXBaker(const QUrl& fbxURL, const QString& baseOutputPath,
|
||||||
|
|
||||||
// grab the name of the FBX from the URL, this is used for folder output names
|
// grab the name of the FBX from the URL, this is used for folder output names
|
||||||
auto fileName = fbxURL.fileName();
|
auto fileName = fbxURL.fileName();
|
||||||
_fbxName = fileName.left(fileName.indexOf('.', -1));
|
_fbxName = fileName.left(fileName.lastIndexOf('.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
static const QString BAKED_OUTPUT_SUBFOLDER = "baked/";
|
static const QString BAKED_OUTPUT_SUBFOLDER = "baked/";
|
||||||
|
|
|
@ -31,7 +31,7 @@ TextureBaker::TextureBaker(const QUrl& textureURL, gpu::TextureType textureType,
|
||||||
{
|
{
|
||||||
// figure out the baked texture filename
|
// figure out the baked texture filename
|
||||||
auto originalFilename = textureURL.fileName();
|
auto originalFilename = textureURL.fileName();
|
||||||
_bakedTextureFileName = originalFilename.left(originalFilename.indexOf('.', -1)) + BAKED_TEXTURE_EXT;
|
_bakedTextureFileName = originalFilename.left(originalFilename.lastIndexOf('.')) + BAKED_TEXTURE_EXT;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureBaker::bake() {
|
void TextureBaker::bake() {
|
||||||
|
|
Loading…
Reference in a new issue