mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
constantize the baked texture extension
This commit is contained in:
parent
26d4cc73e0
commit
86208f237b
1 changed files with 2 additions and 1 deletions
|
@ -136,6 +136,7 @@ bool FBXBaker::rewriteAndCollectChannelTextures(FbxProperty& property) {
|
|||
}
|
||||
|
||||
static const QString BAKED_TEXTURE_DIRECTORY = "textures";
|
||||
static const QString BAKED_TEXTURE_EXT = ".xtk";
|
||||
|
||||
bool FBXBaker::rewriteAndCollectTexture(fbxsdk::FbxTexture* texture) {
|
||||
FbxFileTexture* fileTexture = FbxCast<FbxFileTexture>(texture);
|
||||
|
@ -146,7 +147,7 @@ bool FBXBaker::rewriteAndCollectTexture(fbxsdk::FbxTexture* texture) {
|
|||
QFileInfo textureFileInfo { fileTexture->GetRelativeFileName() };
|
||||
|
||||
// construct the new baked texture file name
|
||||
QString bakedTextureFileName { BAKED_TEXTURE_DIRECTORY + "/" + textureFileInfo.baseName() + ".xtk" };
|
||||
QString bakedTextureFileName { BAKED_TEXTURE_DIRECTORY + "/" + textureFileInfo.baseName() + BAKED_TEXTURE_EXT };
|
||||
|
||||
// write the new filename into the FBX scene
|
||||
fileTexture->SetRelativeFileName(bakedTextureFileName.toLocal8Bit());
|
||||
|
|
Loading…
Reference in a new issue