From b422ec3f88af9a9d979611c2d17ffb4783735cdf Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 2 May 2017 18:04:23 -0700 Subject: [PATCH] also set the relative filename to fix double references --- tools/oven/src/FBXBaker.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/oven/src/FBXBaker.cpp b/tools/oven/src/FBXBaker.cpp index 26aea7a596..8a72784d7c 100644 --- a/tools/oven/src/FBXBaker.cpp +++ b/tools/oven/src/FBXBaker.cpp @@ -375,6 +375,10 @@ void FBXBaker::rewriteAndBakeSceneTextures() { // write the new filename into the FBX scene fileTexture->SetFileName(bakedTextureFilePath.toLocal8Bit()); + // write the relative filename to be the baked texture file name since it will + // be right beside the FBX + fileTexture->SetRelativeFileName(bakedTextureFileName.toLocal8Bit().constData()); + // figure out the URL to this texture, embedded or external auto urlToTexture = getTextureURL(textureFileInfo, fileTexture);