Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Sources/VRage.Render11/GeometryStage/Geometry/MyMeshes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2112,6 +2112,7 @@ static void LoadMesh(MeshId id)
StoreLodMeshSections(id, 0, ref sections);

int modelLods = 1;
var mainMeshDir = Path.IsPathRooted(assetName) ? Path.GetDirectoryName(assetName) : Path.GetDirectoryName(Path.Combine(MyFileSystem.ContentPath, assetName));

if (lodDescriptors != null)
for (int i = 0; i < lodDescriptors.Length; i++)
Expand All @@ -2124,7 +2125,7 @@ static void LoadMesh(MeshId id)

MyLodMeshInfo lodMesh = new MyLodMeshInfo
{
FileName = meshFile,
FileName = Path.Combine(mainMeshDir, Path.GetFileName(meshFile)),
LodDistance = lodDescriptors[i].Distance,
NullLodMesh = meshFile == null,
};
Expand Down