mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 06:04:42 +02:00
fix filename parsing in TextureBaker
This commit is contained in:
parent
38cb998ca1
commit
46fc69dd32
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ TextureBaker::TextureBaker(const QUrl& textureURL, gpu::TextureType textureType,
|
|||
{
|
||||
// figure out the baked texture filename
|
||||
auto originalFilename = textureURL.fileName();
|
||||
_bakedTextureFileName = originalFilename.left(originalFilename.indexOf('.')) + BAKED_TEXTURE_EXT;
|
||||
_bakedTextureFileName = originalFilename.left(originalFilename.indexOf('.', -1)) + BAKED_TEXTURE_EXT;
|
||||
}
|
||||
|
||||
void TextureBaker::bake() {
|
||||
|
|
Loading…
Reference in a new issue