Skip to content

Commit 94e9bed

Browse files
committed
Beta v2.3.3.4
1 parent ba19dfd commit 94e9bed

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

xivModdingFramework/Cache/XivDependencyGraph.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,10 @@ public async Task<List<string>> GetMaterialFiles(int materialVariant = -1, Index
629629
mdlMats = await XivCache.GetChildFiles(model);
630630
} else
631631
{
632-
mdlMats = await _mdl.GetReferencedMaterialPaths(model, -1, false, false, index, modlist);
632+
if (index.Get8xDataOffset(model) != 0)
633+
{
634+
mdlMats = await _mdl.GetReferencedMaterialPaths(model, -1, false, false, index, modlist);
635+
}
633636
}
634637

635638
if (materialVariant <= 0)
@@ -718,15 +721,19 @@ public async Task<List<string>> GetTextureFiles(int materialVariant = -1, IndexF
718721
{
719722
foreach (var mat in materials)
720723
{
721-
List<string> mtrlTexs = null;
724+
List<string> mtrlTexs = new List<string>();
722725
if (index == null)
723726
{
724727
mtrlTexs = await XivCache.GetChildFiles(mat);
725728
} else
726729
{
727730
var dataFile = IOUtil.GetDataFileFromPath(mat);
728-
var _mtrl = new Mtrl(XivCache.GameInfo.GameDirectory, dataFile, XivCache.GameInfo.GameLanguage);
729-
mtrlTexs = await _mtrl.GetTexturePathsFromMtrlPath(mat, false, false, index, modlist);
731+
732+
if (index.Get8xDataOffset(mat) != 0)
733+
{
734+
var _mtrl = new Mtrl(XivCache.GameInfo.GameDirectory, dataFile, XivCache.GameInfo.GameLanguage);
735+
mtrlTexs = await _mtrl.GetTexturePathsFromMtrlPath(mat, false, false, index, modlist);
736+
}
730737
}
731738

732739
foreach (var tex in mtrlTexs)

xivModdingFramework/Mods/FileTypes/TTMP.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ await Task.Run(async () =>
642642
Dictionary<XivDependencyRoot, (XivDependencyRoot Root, int Variant)> rootConversions = null;
643643
try
644644
{
645+
progress.Report((count, totalFiles, "Waiting on Destination Item Selection..."));
645646
rootConversions = await GetRootConversionsFunction(filePaths, modifiedIndexFiles, modList);
646647
} catch(OperationCanceledException ex)
647648
{
@@ -656,7 +657,7 @@ await Task.Run(async () =>
656657

657658
if (rootConversions != null && rootConversions.Count > 0)
658659
{
659-
progress.Report((count, totalFiles, "Updating Destination Items..."));
660+
progress.Report((0, 0, "Updating Destination Items..."));
660661
// If we have roots to convert, we get to do some extra work here.
661662

662663
// We currently have all the files loaded into our in-memory indices in their default locations.

0 commit comments

Comments
 (0)