1
0
mirror of synced 2024-11-27 17:00:50 +01:00

BFRES : Fix bone indices remapping for batch exported models

This commit is contained in:
KillzXGaming 2020-04-18 16:07:06 -04:00
parent 30337a2fcf
commit a3be9b111d
3 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,8 @@ namespace Bfres.Structs
{
public class FSKL : STSkeleton
{
public override int[] BoneIndices => Node_Array;
public int[] Node_Array;
public fsklNode node;

View File

@ -64,6 +64,8 @@ namespace Toolbox.Library
{
if (Materials == null)
Materials = new List<STGenericMaterial>();
if (skeleton != null && skeleton.BoneIndices != null)
NodeArray = skeleton.BoneIndices.ToList();
List<string> failedTextureExport = new List<string>();

View File

@ -19,6 +19,11 @@ namespace Toolbox.Library
{
public class STSkeleton : EditableObject
{
/// <summary>
/// A list of bone indices used to remap bones from an exported model
/// </summary>
public virtual int[] BoneIndices { get; }
public virtual float PreviewScale { get; set; } = 1.0f;
public virtual float BonePointScale { get; set; } = 1.0f;