mirror of
https://github.com/lubosz/overte.git
synced 2025-08-11 07:19:07 +02:00
place the baked textures beside the baked FBX
This commit is contained in:
parent
4e0aba10bc
commit
074fb08313
1 changed files with 1 additions and 2 deletions
|
@ -187,7 +187,6 @@ bool FBXBaker::importScene() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const QString BAKED_TEXTURE_DIRECTORY = "textures/";
|
|
||||||
static const QString BAKED_TEXTURE_EXT = ".ktx";
|
static const QString BAKED_TEXTURE_EXT = ".ktx";
|
||||||
|
|
||||||
QString texturePathRelativeToFBX(QUrl fbxURL, QUrl textureURL) {
|
QString texturePathRelativeToFBX(QUrl fbxURL, QUrl textureURL) {
|
||||||
|
@ -364,7 +363,7 @@ bool FBXBaker::rewriteAndBakeSceneTextures() {
|
||||||
// even if there was another texture with the same name at a different path
|
// even if there was another texture with the same name at a different path
|
||||||
auto bakedTextureFileName = createBakedTextureFileName(textureFileInfo);
|
auto bakedTextureFileName = createBakedTextureFileName(textureFileInfo);
|
||||||
QString bakedTextureFilePath {
|
QString bakedTextureFilePath {
|
||||||
_uniqueOutputPath + BAKED_OUTPUT_SUBFOLDER + BAKED_TEXTURE_DIRECTORY + bakedTextureFileName
|
_uniqueOutputPath + BAKED_OUTPUT_SUBFOLDER + bakedTextureFileName
|
||||||
};
|
};
|
||||||
|
|
||||||
qCDebug(model_baking).noquote() << "Re-mapping" << fileTexture->GetFileName() << "to" << bakedTextureFilePath;
|
qCDebug(model_baking).noquote() << "Re-mapping" << fileTexture->GetFileName() << "to" << bakedTextureFilePath;
|
||||||
|
|
Loading…
Reference in a new issue