1
0
mirror of synced 2025-01-19 01:14:08 +01:00

Fix rigging issues. Fix bntx not keeping the same size after editing textures with same size.

This commit is contained in:
KillzXGaming 2019-05-28 14:34:30 -04:00
parent 623098b3b5
commit 394d0e8d90
4 changed files with 5 additions and 5 deletions

View File

@ -656,7 +656,7 @@ namespace Bfres.Structs
shape.ApplyImportSettings(csvsettings, GetMaterial(shape.MaterialIndex));
shape.BoneIndices = shape.GetIndices(Skeleton);
if (!csvsettings.LimitSkinCount)
if (!ForceSkinInfluence)
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
if (shape.VertexSkinCount == 1)
@ -1043,7 +1043,7 @@ namespace Bfres.Structs
progressBar.Task = $"Generating Max Skin Influence. Mesh: {obj.ObjectName}";
progressBar.Refresh();
if (settings.LimitSkinCount)
if (!ForceSkinInfluence)
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
if (shape.VertexSkinCount == 1 && shape.BoneIndices.Count > 0)

View File

@ -506,13 +506,13 @@ namespace Switch_Toolbox.Library
ArrayCount = 6;
}
bool IsCompressed = false;
bool Compressed = false;
bool HasLuminance = false;
bool HasAlpha = false;
bool IsRGB = false;
if (header.ddspf.flags == 4)
IsCompressed = true;
Compressed = true;
else if (header.ddspf.flags == (uint)DDPF.LUMINANCE || header.ddspf.flags == 2)
HasLuminance = true;
else if (header.ddspf.flags == 0x20001)
@ -541,7 +541,7 @@ namespace Switch_Toolbox.Library
byte[] Components = new byte[4] { 0, 1, 2, 3 };
if (!IsDX10 && !IsCompressed) {
if (!IsDX10 && !IsCompressed()) {
Format = GetUncompressedType(this, Components, IsRGB, HasAlpha, HasLuminance, header.ddspf);
}