Skip to content

Commit 4346799

Browse files
committed
Update 2.0.11.17
2 parents 5a1f1c4 + bcbddf2 commit 4346799

File tree

2 files changed

+5
-1
lines changed
  • xivModdingFramework

2 files changed

+5
-1
lines changed

xivModdingFramework/Models/FileTypes/Mdl.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5180,6 +5180,10 @@ private static VertexByteData GetVertexByteData(VertexData vertexData, XivItemTy
51805180
public static Vector3Collection CalculateTangentsFromBinormals(Vector3Collection normals, Vector3Collection binormals, List<byte> handedness)
51815181
{
51825182
var tangents = new Vector3Collection(binormals.Count);
5183+
if (normals.Count != binormals.Count || normals.Count != handedness.Count)
5184+
{
5185+
return tangents;
5186+
}
51835187
for(var idx = 0; idx < normals.Count; idx++)
51845188
{
51855189
var tangent = Vector3.Cross(normals[idx], binormals[idx]);

xivModdingFramework/Textures/FileTypes/Tex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ public async Task<int> TexImporter(XivTex xivTex, IItem item, DirectoryInfo file
700700

701701
using (var compressor = new Compressor())
702702
{
703-
compressor.Input.GenerateMipmaps = true;
703+
compressor.Input.SetMipmapGeneration(xivTex.MipMapCount > 0, xivTex.MipMapCount);
704704
compressor.Input.SetData(surface);
705705
compressor.Compression.Format = compressionFormat;
706706
compressor.Compression.SetBGRAPixelFormat();

0 commit comments

Comments
 (0)