mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
BFRES : Prevent adding attributes if original attributes are kept and present.
This commit is contained in:
parent
aaa98afa8e
commit
952095877d
1 changed files with 1 additions and 1 deletions
|
@ -1020,7 +1020,7 @@ namespace Bfres.Structs
|
||||||
}
|
}
|
||||||
public void CreateBoneList(STGenericObject ob, FMDL mdl, bool ForceSkinCount, int ForcedSkinAmount = 4)
|
public void CreateBoneList(STGenericObject ob, FMDL mdl, bool ForceSkinCount, int ForcedSkinAmount = 4)
|
||||||
{
|
{
|
||||||
if (ForceSkinCount && !ob.HasIndices && VertexSkinCount != 0)
|
if (ForceSkinCount && !ob.HasIndices && VertexSkinCount != 0 && !vertexAttributes.Any(x => x.Name == "_i0"))
|
||||||
{
|
{
|
||||||
var attributeIndex = new FSHP.VertexAttribute();
|
var attributeIndex = new FSHP.VertexAttribute();
|
||||||
attributeIndex.Format = ResGFX.AttribFormat.Format_8_8_8_8_UInt;
|
attributeIndex.Format = ResGFX.AttribFormat.Format_8_8_8_8_UInt;
|
||||||
|
|
Loading…
Reference in a new issue