Skip to content

Commit

Permalink
Fix regression where texture paths were absolute instead of relative …
Browse files Browse the repository at this point in the history
…again
  • Loading branch information
LagoLunatic committed Jul 23, 2020
1 parent ddaf992 commit c6ff9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SuperBMDLib/source/BMD/MAT3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,9 @@ public void FillScene(Assimp.Scene scene, TEX1 textures, string fileDir)
{
int texIndex = mat.TextureIndices[0];
//texIndex = m_TexRemapBlock[texIndex];
string texPath = Path.Combine(fileDir, textures[texIndex].Name + ".png");
string texFilename = textures[texIndex].Name + ".png";

Assimp.TextureSlot tex = new Assimp.TextureSlot(texPath, Assimp.TextureType.Diffuse, 0,
Assimp.TextureSlot tex = new Assimp.TextureSlot(texFilename, Assimp.TextureType.Diffuse, 0,
Assimp.TextureMapping.FromUV, 0, 1.0f, Assimp.TextureOperation.Add,
textures[texIndex].WrapS.ToAssImpWrapMode(), textures[texIndex].WrapT.ToAssImpWrapMode(), 0);

Expand Down

0 comments on commit c6ff9c3

Please sign in to comment.