mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 08:22:30 +02:00
also set the relative filename to fix double references
This commit is contained in:
parent
2637040f17
commit
b422ec3f88
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue