place the baked textures beside the baked FBX

This commit is contained in:
Stephen Birarda 2017-04-12 14:56:07 -07:00
parent 4e0aba10bc
commit 074fb08313

View file

@ -187,7 +187,6 @@ bool FBXBaker::importScene() {
return true;
}
static const QString BAKED_TEXTURE_DIRECTORY = "textures/";
static const QString BAKED_TEXTURE_EXT = ".ktx";
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
auto bakedTextureFileName = createBakedTextureFileName(textureFileInfo);
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;