diff --git a/ANX.Framework.Content.Pipeline.Assimp/Importer/AssimpImporter.cs b/ANX.Framework.Content.Pipeline.Assimp/Importer/AssimpImporter.cs index 256e5279..7ab817a9 100644 --- a/ANX.Framework.Content.Pipeline.Assimp/Importer/AssimpImporter.cs +++ b/ANX.Framework.Content.Pipeline.Assimp/Importer/AssimpImporter.cs @@ -298,7 +298,11 @@ namespace ANX.Framework.Content.Pipeline if (string.IsNullOrEmpty(texture.FilePath)) continue; - material.Textures.Add(System.IO.Path.GetFileNameWithoutExtension(texture.FilePath) + " " + texture.TextureIndex, new ExternalReference(texture.FilePath)); + var sourcePath = new Uri(texture.FilePath, UriKind.RelativeOrAbsolute); + if (!sourcePath.IsAbsoluteUri) + sourcePath = new Uri(new Uri(this.identity.SourceFilename, UriKind.Absolute), sourcePath); + + material.Textures.Add(Path.GetFileNameWithoutExtension(texture.FilePath) + " " + texture.TextureIndex, new ExternalReference(sourcePath.LocalPath)); } if (assimpMaterial.HasBlendMode)