mirror of
https://github.com/overte-org/overte.git
synced 2025-07-29 18:52:11 +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
|
// figure out the baked texture filename
|
||||||
auto originalFilename = textureURL.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() {
|
void TextureBaker::bake() {
|
||||||
|
|
Loading…
Reference in a new issue