Skip to content

Commit e1d856e

Browse files
committed
Update 2.0.12.2 fix
2 parents d3f617b + 572672c commit e1d856e

File tree

1 file changed

+13
-2
lines changed
  • xivModdingFramework/Materials/DataContainers

1 file changed

+13
-2
lines changed

xivModdingFramework/Materials/DataContainers/XivMtrl.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,13 +691,24 @@ public List<TexTypePath> GetTextureTypePathList()
691691
{
692692
var ret = new List<TexTypePath>();
693693
var maps = GetAllMapInfos(false);
694+
var shaderInfo = GetShaderInfo();
694695
TexTypePath ttp;
695696
foreach (var map in maps)
696697
{
697-
ttp = new TexTypePath() { DataFile = GetDataFile(), Path = map.path, Type = map.Usage};
698698

699+
700+
if (shaderInfo.Shader == MtrlShader.Skin && map.Usage == XivTexType.Multi)
701+
{
702+
ttp = new TexTypePath() { DataFile = GetDataFile(), Path = map.path, Type = XivTexType.Skin };
703+
704+
}
705+
else
706+
{
707+
ttp = new TexTypePath() { DataFile = GetDataFile(), Path = map.path, Type = map.Usage };
708+
}
699709
var fName = Path.GetFileNameWithoutExtension(map.path);
700-
if (fName != "") {
710+
if (fName != "")
711+
{
701712
var name = map.Usage.ToString() + ": " + fName;
702713
ttp.Name = name;
703714
}

0 commit comments

Comments
 (0)