Skip to content

Commit 3d8efe1

Browse files
committed
Change MipMap calculations.
1 parent b7b9663 commit 3d8efe1

File tree

1 file changed

+2
-8
lines changed
  • xivModdingFramework/Textures/FileTypes

1 file changed

+2
-8
lines changed

xivModdingFramework/Textures/FileTypes/Tex.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,8 @@ await Task.Run(async () =>
418418
/// <returns></returns>
419419
public static async Task<string> ConvertToDDS(string externalPath, string internalPath, XivTexFormat texFormat = XivTexFormat.INVALID, ModTransaction tx = null)
420420
{
421-
var root = await XivCache.GetFirstRoot(internalPath);
422-
bool useMips = root != null;
423-
424-
if (internalPath.StartsWith("chara/common/texture/decal_face"))
425-
{
426-
// Hacky exception is fine for now.
427-
useMips = true;
428-
}
421+
var df= IOUtil.GetDataFileFromPath(internalPath);
422+
bool useMips = df != XivDataFile._06_Ui;
429423

430424

431425
// First of all, check if the file is a DDS file.

0 commit comments

Comments
 (0)