BFRES : Fix bone indices remapping for batch exported models
This commit is contained in:
parent
30337a2fcf
commit
a3be9b111d
@ -15,6 +15,8 @@ namespace Bfres.Structs
|
|||||||
{
|
{
|
||||||
public class FSKL : STSkeleton
|
public class FSKL : STSkeleton
|
||||||
{
|
{
|
||||||
|
public override int[] BoneIndices => Node_Array;
|
||||||
|
|
||||||
public int[] Node_Array;
|
public int[] Node_Array;
|
||||||
public fsklNode node;
|
public fsklNode node;
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ namespace Toolbox.Library
|
|||||||
{
|
{
|
||||||
if (Materials == null)
|
if (Materials == null)
|
||||||
Materials = new List<STGenericMaterial>();
|
Materials = new List<STGenericMaterial>();
|
||||||
|
if (skeleton != null && skeleton.BoneIndices != null)
|
||||||
|
NodeArray = skeleton.BoneIndices.ToList();
|
||||||
|
|
||||||
List<string> failedTextureExport = new List<string>();
|
List<string> failedTextureExport = new List<string>();
|
||||||
|
|
||||||
|
@ -19,6 +19,11 @@ namespace Toolbox.Library
|
|||||||
{
|
{
|
||||||
public class STSkeleton : EditableObject
|
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 PreviewScale { get; set; } = 1.0f;
|
||||||
|
|
||||||
public virtual float BonePointScale { get; set; } = 1.0f;
|
public virtual float BonePointScale { get; set; } = 1.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user